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.

strings that contain special the special scharacters { and }

Old posts that have not been replied to for several years.
Locked
User avatar
droolin
Halfop
Posts: 64
Joined: Thu Jul 24, 2003 9:07 pm
Contact:

strings that contain special the special scharacters { and }

Post by droolin »

I know this has been discussed before someplace, but I can't find anything via search engines for tcl tutorial help. So, here is my question.
The eggdrop is receiving a string of information concerning the join of a nick to a network. For the various things I am trying to do, at times I access this string as a list so that I can strip out ip's(one example). Still in testing phase(thank you lord for teaching me to test), I encountered a nick in this string with the special characters { and }. This is the string:*** Notice -- Client connecting at NovaWeb.AwesomeChat.Net: {M}et{E}ha{N} (~foo@xxxxxxxxxxxxxx). This blew my list operation right out of the watter where I was trying to acquire the ip, which unfortionally followed right after the special characters.
Any sugestions? I do not need the nick, the ip is what im after. Just so you know, what im trying to do is create a network wide proxy scanning eggie. The ip is being passed to a bopm proxy scanning bot. I don't need the nick, so I can change those characters. If you feel that is the solution.

droolin
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

from Stdragon's post in the "TCL faq forum":
try this set nick [lindex [split $nick] 0]
User avatar
droolin
Halfop
Posts: 64
Joined: Thu Jul 24, 2003 9:07 pm
Contact:

thank you

Post by droolin »

I knew I had seen that answer someplace, I just couldnt rember where. I have been reading alot of faq's and tutorials as I look for ways to do stuff. I do appoligise for asking something that was in the faq. Like I said, I just couldn't rember where I seen that. That will definatly work I think.

droolin
Locked