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.
Old posts that have not been replied to for several years.
Neomaster
Voice
Posts: 25 Joined: Mon Feb 23, 2004 5:24 pm
Post
by Neomaster » Sat Feb 28, 2004 6:53 pm
Are there scripts that greet only a name?
(I want the bot to PRIVMSG all guests that comes in the channel... the default nick is "Guest")
arcane
Master
Posts: 280 Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:
Post
by arcane » Sun Feb 29, 2004 7:21 am
Code: Select all
bind join - * proc:greet
proc proc:greet {nick mask hand chan} {
if {[string match -nocase "*guest*" $nick]} {
puthelp "NOTICE $nick : Hi $nick!"
}
}
would greet all nicks containing "guest".
Neomaster
Voice
Posts: 25 Joined: Mon Feb 23, 2004 5:24 pm
Post
by Neomaster » Tue Mar 02, 2004 5:17 pm
I'm still getting this error : Tcl error [proc:greet]: invalid command name "Â "
stdragon
Owner
Posts: 959 Joined: Sun Sep 23, 2001 8:00 pm
Contact:
Post
by stdragon » Tue Mar 02, 2004 6:00 pm
You probably copied it wrong or saved it in some weird file format.
Neomaster
Voice
Posts: 25 Joined: Mon Feb 23, 2004 5:24 pm
Post
by Neomaster » Tue Mar 02, 2004 6:39 pm
I don't think...
This is my greet.tcl file :
bind join - * proc:greet
proc proc:greet {nick mask hand chan} {
if {[string match -nocase "*guest*" $nick]} {
puthelp "NOTICE $nick : Hi $nick!"
}
}
and in my eggdrop.conf : source scripts/greet.tcl
And still get the folowing error : (when anybody enters...)
Tcl error [proc:greet]: invalid command name "Â "
stdragon
Owner
Posts: 959 Joined: Sun Sep 23, 2001 8:00 pm
Contact:
Post
by stdragon » Wed Mar 03, 2004 12:57 am
Well when I tried it, it worked. Maybe you used wordpad or something.
Neomaster
Voice
Posts: 25 Joined: Mon Feb 23, 2004 5:24 pm
Post
by Neomaster » Wed Mar 03, 2004 7:31 am
I'm under linux. I used K-write.
Every other script I have are working,,,
stdragon
Owner
Posts: 959 Joined: Sun Sep 23, 2001 8:00 pm
Contact:
Post
by stdragon » Wed Mar 03, 2004 9:48 am
Try another program... try kate... try gedit... try pico... try vi... try typing it in instead of copy/pasting... do I really need to elaborate? Trust me, the code works. :) Please give us some credit and do some experimentation to solve this problem.
Think about it: do you see "Â " in the code on the forum? How do you think it's having an error about that? It's just a copying/formatting error. Maybe kwrite is doing something strange with unicode.
arcane
Master
Posts: 280 Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:
Post
by arcane » Wed Mar 03, 2004 9:59 am
well, works even when edited with notepad.