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.

Question about using " \ " as nick in eggdrop.conf

Old posts that have not been replied to for several years.
Locked
K
Kev1n
Voice
Posts: 11
Joined: Thu Jun 02, 2005 7:38 pm
Location: Canada, BC

Question about using " \ " as nick in eggdrop.conf

Post by Kev1n »

in the:
set nick "clanhere\Eggdrop"
set altnick "clanname\Eggdrop"
line, whenever I use that the bot will come in as if there was nothing in the " \ " space (in otherwords, it will come in as clannameEggdrop). But i've seen other eggdrops logged on with a slash.

Just a curious question if there is a way to use it. Not a big deal but looks better for our clan tag.

thanks
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

you need too use 2 slashes.

Code: Select all

set-nick clanname\\botnick
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
K
Kev1n
Voice
Posts: 11
Joined: Thu Jun 02, 2005 7:38 pm
Location: Canada, BC

Post by Kev1n »

thanks!
does this apply for bot owner aswell?

set owner "clan\Kevin"
to
set owner "clan\\Kevin"
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

\ is a special character in tcl, and in order to output it you need to add another \ behind it, so the correct choice for owner would be:

Code: Select all

set owner "clan\\Kevin"
or

Code: Select all

set owner {clan\Kevin}
K
Kev1n
Voice
Posts: 11
Joined: Thu Jun 02, 2005 7:38 pm
Location: Canada, BC

Post by Kev1n »

thanks, works perfect.
G
Galadhrim
Op
Posts: 123
Joined: Fri Apr 11, 2003 8:38 am
Location: Netherlands, Enschede

Post by Galadhrim »

\ is a special character in nearly all programming languages. if you want to use a [ or ] in tcl, for example you need to "escape" it. like this: \[ this goes for certain characters, often different chars per language.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Galadhrim wrote:\ is a special character in nearly all programming languages. if you want to use a [ or ] in tcl, for example you need to "escape" it. like this: \[ this goes for certain characters, often different chars per language.
not necessarily... only inside expressions that will be evaluated (including strings of course); you can escape evaluation with curly braces:

Code: Select all

puts {hi Goo[ber}
Locked