Changeset c351434
- Timestamp:
- 2010-07-03T21:32:10Z (14 years ago)
- Branches:
- master
- Children:
- 8eb0b76
- Parents:
- 8203da9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
storage_xml.c
r8203da9 rc351434 60 60 char *given_pass; 61 61 xml_pass_st pass_st; 62 int unknown_tag; 62 63 }; 63 64 … … 87 88 irc_t *irc = xd->irc; 88 89 89 if( g_strcasecmp( element_name, "user" ) == 0 ) 90 if( xd->unknown_tag > 0 ) 91 { 92 xd->unknown_tag ++; 93 } 94 else if( g_strcasecmp( element_name, "user" ) == 0 ) 90 95 { 91 96 char *nick = xml_attr( attr_names, attr_values, "nick" ); … … 225 230 else 226 231 { 232 xd->unknown_tag ++; 233 irc_usermsg( irc, "Warning: Unknown XML tag found in configuration file (%s). " 234 "This may happen when downgrading BitlBee versions. " 235 "This tag will be skipped and the information will be lost " 236 "once you save your settings.", element_name ); 237 /* 227 238 g_set_error( error, G_MARKUP_ERROR, G_MARKUP_ERROR_UNKNOWN_ELEMENT, 228 239 "Unkown element: %s", element_name ); 240 */ 229 241 } 230 242 } … … 234 246 struct xml_parsedata *xd = data; 235 247 236 if( g_strcasecmp( element_name, "setting" ) == 0 && xd->current_setting ) 248 if( xd->unknown_tag > 0 ) 249 { 250 xd->unknown_tag --; 251 } 252 else if( g_strcasecmp( element_name, "setting" ) == 0 && xd->current_setting ) 237 253 { 238 254 g_free( xd->current_setting );
Note: See TracChangeset
for help on using the changeset viewer.