Config Syntax - Quotation Marks

These are old archives. They are kept for historic purposes only.
Post Reply
Draegonis
Posts: 15
Joined: Sat Mar 13, 2004 10:52 pm
Location: Timbucktwo
Contact:

Config Syntax - Quotation Marks

Post by Draegonis »

Hola,
Is there any kind of "right way", to write one's config, in terms of the position of quotation marks? Is there any place that they should be going, places that they shouldn't be going, or does it just not matter? The manual doesn't (from what I can tell) have any kind of consistancy regarding them.
I realise that it (appears) to function properly with them or without them, but was wondering if there was some kind of "correct" place.
Thanks. :)
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

Any value CAN be enclosed in quotes. But only certain ones are required. If the string contains spaces, or "comment" characters (# // /*) it must be quoted to let the parser realize that it is a string and not a comment. Other than that, it's completely up to you.
-- codemastr
Draegonis
Posts: 15
Joined: Sat Mar 13, 2004 10:52 pm
Location: Timbucktwo
Contact:

Post by Draegonis »

Great, thanks. :)
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

Oh, one other, a string that contains quotes must be quoted and have the quotes escaped. Meaning, if the string you actually want displayed is "blah" not blah, then you must do "\"blah\""
-- codemastr
Post Reply