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 

unmatched open brace in list
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Jun 27, 2007 6:51 pm    Post subject: Reply with quote

Unless you post full code and full errorInfo (.set errorInfo) I'm not going to help you.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Reynaldo
Halfop


Joined: 11 May 2005
Posts: 54

PostPosted: Thu Jun 28, 2007 3:12 am    Post subject: Reply with quote

i think the problem is, i dont know how to use list command
Code:

if {[matchattr $cflag B]} { list badnick_chk $nick $uhost $hand $chan }

list adds backslashes and/or braces as appropriate to give the correct form for a command.
Back to top
View user's profile Send private message
Reynaldo
Halfop


Joined: 11 May 2005
Posts: 54

PostPosted: Sat Jun 30, 2007 1:25 am    Post subject: Reply with quote

Code:

bind join - * do_jn_msg
proc do_jn_msg {nick uhost hand chan} {
global botnick jn_msg_done badwords
if {$nick == "X" || $nick == $botnick} {
return 0
}
if {[info exists jn_msg_done($nick:$chan)]} {
return 0
}
set jn_msg_done($nick:$chan) 1
timer 3 [list unset jn_msg_done($nick:$chan)]
puthelp "NOTICE $nick :Welcome to $chan"

foreach x $badwords {
if {[string match -nocase *$x* $nick]} {
set bannick($nick) "$nick!*@*"
putserv "KICK $chan $nick :BaD NIcK MaTcH FRoM [string toupper $x]"
return 0
}
}
}

working now
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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