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.

How to remove the quotation mark

Help for those learning Tcl or writing their own scripts.
Post Reply
A
Astur
Voice
Posts: 16
Joined: Fri Nov 23, 2007 10:27 am

How to remove the quotation mark

Post by Astur »

Hello!

I need your help at the following:

I have a bot and he reads out XML files from a website.
If someone uses the command !player <name>, the bot reads out the xml data and write it into the channel.
This works wonderful, but there is one problem:

If there is a " (quotation mark) behind the name (like Name"), the whole think is not working (because he tries to read out the data from Name", and Name" does not exist)

So, how can i remove the quotation mark behind the name?


In MSL (mIRC Scripting Language) I had used $remove(", $chr(34))

Greetings,
Astur
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Code: Select all

set name [string map {"\"" ""} $name]
Post Reply