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.

tcl problem

Help for those learning Tcl or writing their own scripts.
Post Reply
a
alisetan
Voice
Posts: 36
Joined: Sun May 21, 2006 3:05 pm

tcl problem

Post by alisetan »

bind pub -|- ${tr}dj dj

proc dj {nick host hand chan arg} {
global url pathqstat cc nopub dj
if {[lsearch -exact $nopub [string tolower $chan]] >= 0} {return 0}
if {$arg == ""} {
putserv "notice $nick :Usage: ${cc}dj <Exact Nickname>"
return 0
}
set dj "$arg"
putserv "NOTICE $chan :DJ set to $dj"
}

Tcl error [dj]: wrong # args: should be "dj target"

this showing when i type !dj alisetan.. kindly.. can anyone help me

thanks
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

You probably have another procedure called dj which is overriding this one, try changing the proc name to something else.
Post Reply