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.

Why only Guest is working and GuestXXXXX not ?

Old posts that have not been replied to for several years.
Locked
S
Solaris

Why only Guest is working and GuestXXXXX not ?

Post by Solaris »

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
N
Nexus6
Op
Posts: 114
Joined: Mon Sep 02, 2002 4:41 am
Location: Tuchola, Poland

Post by Nexus6 »

it works eh?
if {[regexp -nocase $nick "Guest*"]}
-nocase so no case ;P

Code: Select all

if {[regexp -nocase $nick "guest*"]} 
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

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.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

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)
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Oh, also, you have to start it with ^ if you don't want it to match 'guest' anywhere in the nick.

^guest.*
Locked