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 

Enter nick problem into mysql

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


Joined: 19 Feb 2006
Posts: 2

PostPosted: Sun Feb 19, 2006 2:33 am    Post subject: Enter nick problem into mysql Reply with quote

Hey guys and girls

I have made a tcl that enters user information into mysql. But I have a problem when the nick has a \ in it. Mysql requires the value to be set to \\.

Code:


set $nick "ad\am"

## Nick need to be "ad\\am" to go into mysql


I have tryed {$nick} and a regsub a mate try to make. Nothing has worked yet. Any help with this problem would be ace.

Adam
Back to top
View user's profile Send private message
adam
Voice


Joined: 19 Feb 2006
Posts: 2

PostPosted: Sun Feb 19, 2006 2:57 am    Post subject: when you give up Reply with quote

Like they say when you give up is when you find it. I am still not sure if this is the correct way. Thanx

Code:
set nick [string map {\\ \\\\ \[ \\\[ \] \\\] \( \\\( \) \\\) \{ \\\{ \} \\\} \" \\\"} $nick]


Adam
Back to top
View user's profile Send private message
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