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.
Help for those learning Tcl or writing their own scripts.
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »
Unless you post full code and full errorInfo (.set errorInfo) I'm not going to help you.
-
Reynaldo
- Halfop
- Posts: 54
- Joined: Wed May 11, 2005 2:51 am
Post
by Reynaldo »
i think the problem is, i dont know how to use list command
Code: Select all
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.
-
Reynaldo
- Halfop
- Posts: 54
- Joined: Wed May 11, 2005 2:51 am
Post
by Reynaldo »
Code: Select all
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