IRC Script (Tool): Mass Voice/Devoice

View previous topic View next topic Go down

IRC Script (Tool): Mass Voice/Devoice

Post by Justln on 24/5/2013, 4:23 am

If you've ever tried running a non-automated trivia event on IRC you know how bad the spam can get. One way to avoid this is by loading the following script and devoicing the channel with "/m d", and setting the channel mode "+m" once you've seen the correct answer (The mode +m blocks all messages from regular users participating in your event). Once you've found your winner you can tell the channel and either set "-m" to continue asking your questions or "/m v" to voice everyone again.

Code:

alias m {
  var %i 1,%j,%k $modespl,%l, %mv $iif($$1 = v,+,$iif($$1 = d,-))
  %j = $+(%mv,$str(v,%k)) | while $nick(#,%i,a,oh&~) {
    $iif($ifmatch != $me,%l = %l $ifmatch)
    if ($token(%l,0,32) = %k) || ($nick(#,0,a,oh&~) = %i) {
      mode # %j %l | %l = ""
    }
    inc %i
  }
}

Justln
Tier 1 (Registered)
Tier 1 (Registered)


Back to top Go down

Re: IRC Script (Tool): Mass Voice/Devoice

Post by Aram on 24/5/2013, 4:27 am

Thank you Very Happy Defo helps for my events!
avatar
Aram
Tier 2 (100 posts)
Tier 2 (100 posts)


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum