[12:01:47 pm] <leet> [19:01:41] Tcl error [automode:join]: can't read "sv(maxdelay)": no such variable Can anyone tell me how to fix this error? The whole script is below: proc automode:join { nick uhost handle chan } { global sv if {[channel get $chan "op"] && [isop $::b...
I have recoded the command, and it works now. I am using the onchan command. It works fine.
If you want to still reply to the above code, and tell me how to make it work that's good, otherwise it's okay.
Okay so I have modified my script a bit with the help of Mr Spike^^. [10:32:15 pm] -> *leet* chattr who [10:32:17 pm] -leet- No channel [10:32:19 pm] -leet- Ljubljana.SI.EU.irchaven.org 401 leet who :No such nick [10:32:21 pm] -leet- Ljubljana.SI.EU.irchaven.org 318 leet who :End of /WHOIS list. [10...
It sounds to me like you are looking for ways to avoid being exploited by nicknames such as [die]. The proper way of avoiding this is not to do massive regexp's, and other mangling, but rather use proper tcl-scripting, being aware of the command and variable substitutions done by the tcl engine, an...
What "bad" characters? Are you sure you want to ignore them? Here's a line that will get rid of alot of characters: regsub -all \\W+ $string "" string ...but I'm not sure this is what you really need :wink: (your wording makes me think you might be having problems related to tre...