| View previous topic :: View next topic |
| Author |
Message |
Access Voice
Joined: 04 Jun 2006 Posts: 22
|
Posted: Fri Jun 16, 2006 1:39 am Post subject: "wrong # args" ?! |
|
|
| Code: | proc msg:invite { nick uhost hand arg } {
global mychan
if { $nick == "MyNick" } {
if { $arg == "" } {
putserv "NOTiCE $nick No Chan!! \002!invite <#Chan>\002"
}
} else {
foreach nick [chanlist $arg] {
putserv "invite $nick $mychan"
}
}
} |
Tcl error [msg:invite]: wrong # args: should be "msg:invite nick uhost handle chan arg"
Whats wrong? 
Last edited by Access on Fri Jun 16, 2006 1:49 am; edited 1 time in total |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Jun 16, 2006 1:44 am Post subject: |
|
|
the invocation syntax of [msg:invite] _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Fri Jun 16, 2006 2:37 am Post subject: |
|
|
I'll make this really easy and translate:
| Code: | | proc msg:invite { nick uhost hand arg } | should be
| Code: | | proc msg:invite { nick uhost hand chan arg } |
|
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Fri Jun 16, 2006 4:59 am Post subject: |
|
|
I have rather the feeling, there is another proc called "msg:invite" which overwrites this one! Because if the trigger would be public, it would have complained about too less arguments (should be 4), but the proc shown has only 4, so we assume it it binded really to msg, but than the argument number would be correct, so there must be a msg:invite intented to be bound to pub. _________________ De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens... |
|
| Back to top |
|
 |
Access Voice
Joined: 04 Jun 2006 Posts: 22
|
Posted: Fri Jun 16, 2006 7:44 am Post subject: |
|
|
nope, just another proc named "pub:invite" but now i changed procname but didnt work too!
sry for my english, im german!
| Code: | proc msg:inv { nick uhost hand chan arg } {
global mychan
if { $arg == "" } {
putserv "NOTiCE $nick Kein Channel angegeben! \002!invite <#Chan>\002"
} else {
foreach nick [chanlist $arg] {
putserv "invite $nick $mychan"
}
}
} |
|
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Fri Jun 16, 2006 8:57 am Post subject: |
|
|
what does your error mesasge look now like? I am still confident I was right .
@Access: Dein Englisch ist nicht das Problem . _________________ De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens... |
|
| Back to top |
|
 |
|