Its designed to work on only one channel, and the syntax for it cause of the strings is !afk <bantime> <reason>
The problem is, that when a person does !afk 1 test8 in the testchannel it creates 2 bans.bind pub - !afk pub:afkkick_kick
proc pub:afkkick_kick {nick uhost hand chan text} {
global testchan kickmsg
set bantime [lindex $text 0]
set reason [lindex $text 1]
set creator "AFKKick Script"
if {$chan != $testchan} { return 0}
putserv "PRIVMSG $chan :Away Kick Engaging"
puthelp "KICK $chan $nick :$kickmsg"
newchanban $chan $uhost $creator $reason $bantime sticky
}
This only happened when the newchanban option was set to sticky, but when it wasnt set to sticky, no ban was in effect on the channel at all. What can i do to fix this problem?! [ 6] ~testy!*@216.105.160.17 (expires at 17:31) (sticky)
AFKKick Script: test8
Created 17:30
* [ 7] *!~testy@216.105.160.17 (Minako!Minako@public2-ward1-6-cust47.manc.broadband.ntl.com) (active 00:32)
Weirdo