View Issue Details

IDProjectCategoryView StatusLast Update
0001577Anope Development (1.9.x series)Otherpublic2014-02-27 02:28
Reporterstatic Assigned ToAdam  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSDebian 
Summary0001577: Config parser chokes on c-style comments at the end of lines containing values
DescriptionAdding 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 ReproduceAdd 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!
TagsNo tags attached.

Activities

Adam

2014-02-27 02:28

administrator   ~0006599

Fixed in 8f3bd314ed3ce371d2f40687920246e6944376f6

Issue History

Date Modified Username Field Change
2014-02-26 14:54 static New Issue
2014-02-27 02:28 Adam Note Added: 0006599
2014-02-27 02:28 Adam Status new => resolved
2014-02-27 02:28 Adam Resolution open => fixed
2014-02-27 02:28 Adam Assigned To => Adam