egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

blacklist1.2.tcl by Opposing (aka Sir_Fz)

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
Dizzle
Op


Joined: 28 Apr 2005
Posts: 109

PostPosted: Sun Jul 10, 2005 1:23 pm    Post subject: blacklist1.2.tcl by Opposing (aka Sir_Fz) Reply with quote

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 Smile 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
View user's profile Send private message Visit poster's website MSN Messenger
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Sun Jul 10, 2005 2:27 pm    Post subject: Reply with quote

cancell them out using

Code:
\[reason\] \[bantime\]


only in the msg's and putlog's
_________________
r0t3n @ #r0t3n @ Quakenet
Back to top
View user's profile Send private message MSN Messenger
Dizzle
Op


Joined: 28 Apr 2005
Posts: 109

PostPosted: Sun Jul 10, 2005 2:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jul 10, 2005 8:05 pm    Post subject: Reply with quote

Ahh, I didn't test it. That's why I didn't submit it to egghelp, thanx for reporting this bug Smile
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber