What this does is allows Voices to do 5 min bans so the ops can monitor up and coming Ops... The kick is delayed 5 seconds because the kick seems to happen before the ban is set..
Code: Select all
bind pubm - "#fart !ban*" VoiceKickBan:pubm:trigger
proc VoiceKickBan:pubm:trigger {nick uhost hand chan arg} {
if { [isop $nick $chan] || [ishalfop $nick $chan] || [isvoice $nick $chan] } {
set name [string range $arg 5 end]
if { [ onchan $name $chan ] } {
if { [isop $name $chan] || [ishalfop $name $chan] || [isvoice $name $chan] } {
return 0
}
newchanban $chan [getchanhost $name] VoiceBan "Voice Ban($nick)" 5 sticky
utimer 5 "[VoiceKickBan:Kick $nick $chan $name]"
}
}
}
proc VoiceKickBan:Kick {tnick tchan tname} {
puthelp "KICK $tchan $tname :Voice Ban($tnick)"
}
But when I look at the Bots internal list.. It shows this..[15:16] <@John[io]> !ban Fresh9675511
[15:16] * BadX sets mode: +b *!~1033e432@4F431FF5F6A18B7D7DDC1E5A8319C3x
[15:17] * Fresh9675511 was kicked by BadX (Voice Ban(John[io]))
Why is it setting the incorrect ban within the channel?[15:23] <badx> ! [ 1] ~1033e432!*@4F431FF5F6A18B7D7DDC1E5A8319C3x (expires at 22:31) (sticky)
[15:23] <badx> VoiceBan: Voice Ban(John[io])
[15:23] <badx> Created 22:26
[15:23] <badx> * [ 2] *!~1033e432@4F431FF5F6A18B7D7DDC1E5A8319C3x (BadX!~BadX@DA5F351328F9237AD24DC0AD2BA4x) (active 00:11)