Hey all, so me and simo have been making a script that shows kill info, If the killed user and the bot shares a channel, this is the code we got so far it's not currently working heh, this is the error. [15:35:27] Tcl error [serv:killed]: can't read "chan": no such variable bind raw - NOTI...
So just to be sure, if i want to add more options do i do it like this? proc flud:ban { n u h t c } { if {(![info exists ::badguy::bad($u)])} { set ::badguy::bad($u) 0 } incr ::badguy::bad($u) switch $::badguy::bad($u) { 1 { putquick "privmsg $n :You Are Flooding/Spamming, Please Stop Or You Wi...
Um, your version didn't work until I added a namespace, now it works Perfect :D namespace eval ::badguy { bind flud - pub flud:ban proc flud:ban { n u h t c } { if {(![info exists ::badguy($u)])} { set ::badguy($u) 0 } if {($::badguy($u) == "3")} { putnow "gline $n 30m Network_Flood&q...
Heh, figured it out by myself bind flud - pub flud:ban proc flud:ban { n u h t c } { global badguy if {(![info exists badguy])} { set badguy "0" } if {($badguy == "1")} { putnow "gline $n 30m Network_Flood" set badguy "0" } else { putnow "KILL $n Spamming...
So just made this rough code on my mobile, it's meant to kill a user if they flood on 1st, and if they flood when they reconnect it will gline, is this code close to correct? bind flud - pub flud:ban proc flud:ban { n u h t c } { global badguy if {(![info exists badguy])} { set badguy "0" ...