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 

str_replace

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


Joined: 29 Aug 2007
Posts: 8

PostPosted: Wed Sep 05, 2007 3:15 pm    Post subject: str_replace Reply with quote

Hey, i wrote own script to fetch & display some data and now i got one outgoing variable called $username - it's first and only one arg from tcl which is POSTed in http URL to fetch back result from this query...

Now the problem is... when some1 type !command text[space]next_part

I don't want to split arguments, i just want to replace all white spaces in variable to %20

dunno how to use str_replace for that ;s

Please help me asap
Tnx in advance
Aimar
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Sep 05, 2007 3:59 pm    Post subject: Reply with quote

I'd go for "string map"...

Code:
string map {" " "%20"} $username

_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Aimar`
Voice


Joined: 29 Aug 2007
Posts: 8

PostPosted: Wed Sep 05, 2007 5:11 pm    Post subject: Reply with quote

thanks, love ya Smile
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