Gag Script (Ban) V1.0

By newklear on Nov 17, 2008

I noticed on some IRC servers depending on the channel setup some operators ban users who are abusive so that they cannot talk in channel if they have no voice modes set etc..

So thought about doing a "Gag" alias as some operators refer to banning someone as gagging them.
Reason for the alias is because channel operators normally ban "gag" users and forget to remove the ban, with the alias you can ban them once at a set number of seconds and the alias will automatically unban them or revoice them if they were previously voiced when the time is up.

Multiple users can be banned/gagged this way but one at a time.

Usage:
/gag nickname

*An input box pops-up and you fill in the number of seconds for the nick to be banned "gagged"

Instructions:
Copy Below Snippet
Alt + R and paste into a clean remote, save and follow usage guideline.

on *:UNLOAD: {
unset %gag*
echo -a Gag Alias Unloaded
}

alias gag {
  if (!$1) { echo -a Syntax: /gag nick | halt }
  set %gagtime $?="Enter Gag time in Seconds (i.e 1 min = 60 seconds)"
  if (!%gagtime) { halt }
  set %gagtemp $calc(%gagtime + 2)
  set -u [ $+ [ %gagtemp ] ] %gaggednick [ $+ [ $1 ] ] $1
  if ($1 isvoice $chan) {  
    mode $chan -v $1 
    .timer [ $+ [ $1 ] ] -do 1 %gagtime mode $chan +v %gaggednick [ $+ [ $1 ] ] 
  }
  ban -u [ $+ [ %gagtime ] ] %gagged [ $+ [ $1 ] ] $1
}

Comments

Sign in to comment.
Anish   -  Nov 30, 2008

lol Kasbah

Nice script :)

 Respond  
newklear   -  Nov 17, 2008

thanx ^Alexis^ :)
My highest rating ever lol

 Respond  
^Alexis^   -  Nov 17, 2008

I like it :D 5/10

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.