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.

totally help for beginners!

Old posts that have not been replied to for several years.
Locked
w
wile

totally help for beginners!

Post by wile »

hello i der im a new user of tcl and i dont know what does dis means
[00:24] Tcl error [replychan]: wrong # args: should be "string option arg ?arg ...?"
and here is the source problems
proc replychan {nick uhost hand chan rest} {
global botnick repchan
foreach targchan $repchan {if {[string match *[string tolower $targchan]* [string tolower $chan]]} {append reps "$chan $rest" ; replyuser $nick $uhost $hand $reps ; return 0}}
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

Code: Select all

"*[string tolower $targchan]*"
that might work. dont see why you need the wildcards though :-?
photon?
w
wile

Post by wile »

hello bro thanks for the reply but still it doesnt work i have the same problem
Tcl error [replychan]: wrong # args: should be "string option arg ?arg ...?"
and here is the source problems
proc replychan {nick uhost hand chan rest} {
global botnick repchan
foreach targchan $repchan {if {[string match *[string tolower $targchan]* [string tolower $chan]]} {append reps "$chan $rest" ; replyuser $nick $uhost $hand $reps ; return 0}}
Locked