| View previous topic :: View next topic |
| Author |
Message |
Dizzle Op
Joined: 28 Apr 2005 Posts: 109
|
Posted: Sun Jul 10, 2005 1:23 pm Post subject: blacklist1.2.tcl by Opposing (aka Sir_Fz) |
|
|
I installed your script, rehashed the bot and put in my settings.
butt when i used .addbl (too add a user) he givin me errors
| Quote: | | [19:17] Tcl error [bl:add]: invalid command name "reason" |
well i deleted this problem by removing the [reason] [bantime] text in the bl:add proc. in the both putlog cmd's
| Code: | proc bl:add {hand idx arg} {
if {$arg == ""} { putlog "SYNTAX: \003.addbl <nick!user@host> [reason] [btime]\003"; return 0 }
if {![string match -nocase *!*@* [set blnick [lindex [split $arg] 0]]]} {
putlog "SYNTAX: \003.addbl \002<nick>\002!\002<user>\002@\002<host>\002 [reason] [bantime]\003"
return 0
}
if {[bl:do:add $hand $arg]} {
foreach chan [channels] {
if {![channel get $chan blacklist]} { continue }
foreach ubchecked [chanlist $chan] {
bl:ban $ubchecked [getchanhost $ubchecked $chan] [nick2hand $ubchecked] $chan
}
}
putlog "[string map {! \002!\002 @ \002@\002} \002$blnick\002] has been \002added\002 to the blacklist."
} {
putlog "[string map {! \002!\002 @ \002@\002} \002$blnick\002] already \002exists\002 in the blacklist."
}
}
|
Hope you have a solution too this, and when you got time update the script when i remove this the script is working fine, just the [reason] [bantime] in the msg that he saw a an command.
greetz Dizzle |
|
| Back to top |
|
 |
r0t3n Owner
Joined: 31 May 2005 Posts: 507 Location: UK
|
Posted: Sun Jul 10, 2005 2:27 pm Post subject: |
|
|
cancell them out using
| Code: | | \[reason\] \[bantime\] |
only in the msg's and putlog's _________________ r0t3n @ #r0t3n @ Quakenet |
|
| Back to top |
|
 |
Dizzle Op
Joined: 28 Apr 2005 Posts: 109
|
Posted: Sun Jul 10, 2005 2:37 pm Post subject: |
|
|
| well im aware off these tokens, butt its for public use, so more ppl will use it and have the same error, its more a notice then a question tosser |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Jul 10, 2005 8:05 pm Post subject: |
|
|
Ahh, I didn't test it. That's why I didn't submit it to egghelp, thanx for reporting this bug  _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|