egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Escape characters

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Sun Nov 18, 2007 4:25 pm    Post subject: Escape characters Reply with quote

Hello again.. i have one tcl script but when someone have nick with " { } " char tcl have problem.. how i can resolve this problem ?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sun Nov 18, 2007 7:27 pm    Post subject: Reply with quote

This would usually indicate that the script uses lists in an inappropriate manner, or possibly timers and similar in an insecure manner.
Although escaping these characters may seem to fix the problem, it really only hides it. A better solution would be to correct the cause of those issues.

Think you could provide some info on the script in question (source or location of source, etc)?
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sun Nov 18, 2007 7:58 pm    Post subject: Reply with quote

How to write eggdrop scripts that won't choke on special characters
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Sun Nov 18, 2007 8:01 pm    Post subject: Reply with quote

fixed:D
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Nov 18, 2007 8:30 pm    Post subject: Reply with quote

ultralord wrote:
i use pwf.tcl but i edited.. but the script have problem when user add in pickup game if have { } character in his nick.. i cant fix that problem?

You edit a script and either create an error or stumble across one then, when given advice/links, do NOT bother to take said advice let alone actually READ anything or even make an effort. Rolling Eyes

rosc2112 gave you the link to a very readable solution that does require YOU to do something as a way of learning.

rosc2112 wrote:
How to write eggdrop scripts that won't choke on special characters

_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber