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.

channels with [ ]

Old posts that have not been replied to for several years.
Locked
a
amerce

channels with [ ]

Post by amerce »

I have problems with a tcl script. When i try to add a channel with [ ] in it, it gives errors, is there something to solve it?

greeetz
W
Weirdo
Master
Posts: 265
Joined: Sat Apr 27, 2002 8:00 pm
Location: Manchester, England

Post by Weirdo »

I thought there was a bug with most bots and heck most servers, that channels with [] in them wouldnt be allowed.

Certainly not allowed on Aniverse
a
amerce

Post by amerce »

on quakenet its allowed:/
F
Fluxism
Halfop
Posts: 47
Joined: Mon Aug 05, 2002 8:58 am

Post by Fluxism »

Hi,

Yes u can add chans with [ ].

If the channel is called #[fred]

Then you need to make entries in the conf file and any tcl scripts like so;

#\[fred]


The \ makes the code ignore the [ as a command.


Flux.

edit; maybe you would have to put #\[fred\] I didnt really need my bots to join a channel with [ ] for any length of time, but #\[fred] will get it online, maybe #\[fred\] would stop errors being generated? A TCL guru will put me right on this....
O
ObelNix

Post by ObelNix »

#\[fred\] must do
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

No, you only need the first \.

Tcl will see no reason to parse the ] as part of a command, unless one has been opened.

It is a complicated subject, where brackets and quotes change the way you have to use the \.

For simple purposes though, allways use #\[fred\], as it will prevent you getting into trouble later.
Last edited by ppslim on Thu Apr 10, 2003 5:25 am, edited 1 time in total.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

#\[fred] will do fine.
Once the game is over, the king and the pawn go back in the same box.
a
amerce

Post by amerce »

thnx, it works
Locked