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
}