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.

Utilizing special characters..

Help for those learning Tcl or writing their own scripts.
Post Reply
F
Froberg
Voice
Posts: 10
Joined: Thu Aug 27, 2009 9:35 pm

Utilizing special characters..

Post by Froberg »

Hi all.

I have this service22.tcl script, and I've sworn not to share it with anyone, so I can't post any of the code.

Rather useless, I know. :/

At any rate, can someone explain to me why all .tcl scripts [censored] up with [ ; etc.?

I've noticed it works fine when it has to read from a .txt file.

The reason I ask is because I need to maintain a list of connect; commands for some servers, so people can just copy-paste and enter it in to their consoles.. but the tcl [censored] it up.

At any rate, is there any way of making my eggdrop work properly with these "special" characters?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Read Script Security (and make sure you carefully read the page provided in rosc2112's post).
F
Froberg
Voice
Posts: 10
Joined: Thu Aug 27, 2009 9:35 pm

Post by Froberg »

Sir_Fz wrote:Read Script Security (and make sure you carefully read the page provided in rosc2112's post).
Thanks man :)

Here's an example of what goes wrong though;

[12:55:54] <Froberg> ?service add !test connect dk3.dsrack.dk:28615;password server2
[12:55:54] -DSRack- !test has been added.
[12:56:06] <Froberg> ?service add !test [connect dk3.dsrack.dk:28615;password server2]
[12:56:07] -DSRack- !test has been added.
[12:56:18] <Froberg> ?service add !test {connect dk3.dsrack.dk:28615;password server2}
[12:56:19] -DSRack- !test has been added.
[12:56:31] <Froberg> ?service add !test "connect dk3.dsrack.dk:28615;password server2"
[12:56:32] -DSRack- !test has been added.
[12:56:34] <Froberg> !test
[12:56:34] <DSRack> connect {{dk3.dsrack.dk:28615;password}} server2
[12:56:35] <DSRack> {{[connect}} {{dk3.dsrack.dk:28615;password}} {server2\]}
[12:56:36] <DSRack> {\{connect} {{dk3.dsrack.dk:28615;password}} {server2\}}
[12:56:38] <DSRack> {{"connect}} {{dk3.dsrack.dk:28615;password}} {server2"}
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Your example doesn't do us any good.
F
Froberg
Voice
Posts: 10
Joined: Thu Aug 27, 2009 9:35 pm

Post by Froberg »

I fixed it, thanks for the help.

I really appreciate it :)
Post Reply