This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

blacklist1.2.tcl by Opposing (aka Sir_Fz)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
D
Dizzle
Op
Posts: 109
Joined: Thu Apr 28, 2005 11:21 am
Contact:

blacklist1.2.tcl by Opposing (aka Sir_Fz)

Post by Dizzle »

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
[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: Select all

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
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

cancell them out using

Code: Select all

\[reason\] \[bantime\]
only in the msg's and putlog's
r0t3n @ #r0t3n @ Quakenet
D
Dizzle
Op
Posts: 109
Joined: Thu Apr 28, 2005 11:21 am
Contact:

Post by Dizzle »

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
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Ahh, I didn't test it. That's why I didn't submit it to egghelp, thanx for reporting this bug :)
Post Reply