| View previous topic :: View next topic |
| Author |
Message |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Mon Mar 26, 2007 4:46 pm Post subject: Help with error [SOLVED] |
|
|
Trying to make this display a part msg on user who parts chan but I'm confused with error part.
| Code: |
bind part - * showgreet2
proc showgreet2 {nick uhost hand chan} {
global patch2
if {[file exist /$patch2/[lindex [split $uhost @] 1].txt]} {
set file5 [open /$patch2/[lindex [split $uhost @] 1].txt r+]
gets $file5 text
close $file5
putserv "PRIVMSG $chan :$text" |
Error I get is...
[16:33] Tcl error [showgreet2]: wrong # args: should be "showgreet2 nick uhost hand chan"
Last edited by cache on Wed Mar 28, 2007 12:47 am; edited 1 time in total |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Mon Mar 26, 2007 5:24 pm Post subject: |
|
|
(9) PART (stackable)
bind part <flags> <mask> <proc>
procname <nick> <user@host> <handle> <channel> <msg>
Description: triggered by someone leaving the channel. The mask is
matched against "#channel nick!user@host" and can contain
wildcards. If no part message is specified, msg will be set
to "". |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Mon Mar 26, 2007 5:31 pm Post subject: |
|
|
| Thanks rosc, apparently I always keep forgeting the last arg lol |
|
| Back to top |
|
 |
|