![]() |
|
Auto Kick On Ban - Printable Version +- LibraIRC.net Forums (https://librairc.net/forums) +-- Forum: Public Forums (https://librairc.net/forums/forum-47.html) +--- Forum: IRC Discussions (https://librairc.net/forums/forum-57.html) +---- Forum: mIRC (https://librairc.net/forums/forum-64.html) +---- Thread: Auto Kick On Ban (/thread-66.html) |
Auto Kick On Ban - Omar - 08-11-2011
Code Code: alias -l add {
var %1 = $strip($1)
goto $prop
:allow | return $addtok(%allow,%1,44)
:dis | return $remtok(%allow,%1,1,44)
}
on @*:ban:%allow:{
var %i = 1
while ($ialchan($banmask,#,%i).nick) {
if ($v1 != $me) {
kick # $v1 Banned
}
inc %i
}
}
menu status,channel,nicklist,menubar,query {
Channel Allow List
.Add {
set %allow $add($$?"Add a channel to my Allow List:").allow
echo 4 -at * $! has been added to my allow list!
}
.Del {
set %allow $add($$?"Remove a channel from my Allow List:").dis
echo 4 -at * $! has been removed from my allow list!
}
}How to use
Re: Auto Kick On Ban - Nex - 08-11-2011 Again: Nice Job, Agent ![]() ...It even works fine with my Script lol :> Re: Auto Kick On Ban - Omar - 08-11-2011 yea its simple .. and mostly the display things is the one that's make conflict with other scripts but kick and ban and this stuff would be fine always. Re: Auto Kick On Ban - Rothaos - 19-03-2012 Why dont you use simply an ini-datei for the allow list? :S than you have just to use writeini and no alias.... Re: Auto Kick On Ban - Omar - 19-03-2012 Okay try this one it might be better no allow list just enable and disable for the specify channel u want Code: alias -l add {
goto $prop
:allow | return $addtok(%allow,#,44)
:dis | return $remtok(%allow,#,1,44)
}
on @*:ban:%allow:{
var %i = 1
while ($ialchan($banmask,#,%i).nick) {
if ($v1 != $me) {
kick # $v1 4 Floodbot.
}
inc %i
}
}
menu channel {
Auto Kick
.Enabled {
set %allow $add(#).allow
echo 4 -at * # 7has been Enabled!
}
.Disabled {
set %allow $add(#).dis
echo 4 -at * # 7has been Disabled!
}
} |