View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001577||Anope Development (1.9.x series)||Other||public||2014-02-26 14:54||2014-02-27 02:28|
|Summary||0001577: Config parser chokes on c-style comments at the end of lines containing values|
|Description||Adding a c-style comment to the end of a config line containing a value will cause anope to choke on the line, and fail to start, with the message "unexpected word", the provided line in the error being the next line containing a config value.|
Examples provided in reproduction steps.
|Steps To Reproduce||Add a c-style comment to the end of any config line that has a value:|
add_to_akill = no /* this will break anope */
refresh = 600 /* this too will break anope */
anope_is = "very unhappy with this" /* anope won't start with this */
add_to_akill = no # this will not break anope
section /* this won't break anope */
this = "value"
stuff = yes
five = 5
foo = "i am the line that's breaking things" /* this comment right here is trouble */
bar = "but i'm the line anope will report an error on" # should've used this style of comment!
|Tags||No tags attached.|