| View previous topic :: View next topic |
| Author |
Message |
alisetan Voice
Joined: 21 May 2006 Posts: 36
|
Posted: Tue Jul 17, 2007 8:46 am Post subject: tcl problem |
|
|
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 J 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 |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Jul 17, 2007 8:52 am Post subject: |
|
|
You probably have another procedure called dj which is overriding this one, try changing the proc name to something else. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|