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.
S
Solaris
Post
by Solaris » Sat Nov 23, 2002 7:41 am
Why my Eggdrop is only listen on Guest and not on Guest53324 ?
I use this Code in my TCL File
if {[regexp -nocase $nick "Guest*"]}
Thanks for Help
Nexus6
Op
Posts: 114 Joined: Mon Sep 02, 2002 4:41 am
Location: Tuchola, Poland
Post
by Nexus6 » Sat Nov 23, 2002 10:00 am
it works eh?
if {[regexp -nocase $nick "Guest*"]}
-nocase so no case ;P
Code: Select all
if {[regexp -nocase $nick "guest*"]}
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Sun Nov 24, 2002 11:35 am
You may find reading the Tcl man pages will help you with this.
You are sendign the arguments in the wrong order.
I also sugest using "string match" and not regexp for such a simple match.
stdragon
Owner
Posts: 959 Joined: Sun Sep 23, 2001 8:00 pm
Contact:
Post
by stdragon » Mon Nov 25, 2002 12:15 am
Also, regexp doesn't use * the same way as you think. You're asking it to match guestttttttt, not guest12345. If you want any nick that starts with guest, use guest.* (note the period)
stdragon
Owner
Posts: 959 Joined: Sun Sep 23, 2001 8:00 pm
Contact:
Post
by stdragon » Mon Nov 25, 2002 12:15 am
Oh, also, you have to start it with ^ if you don't want it to match 'guest' anywhere in the nick.
^guest.*