Mercurial > pidgin
comparison src/gaimrc.c @ 2091:bc3a118644d5
[gaim-migrate @ 2101]
de-escape things
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 31 Jul 2001 23:57:34 +0000 |
parents | b66aca8e8dce |
children | df9710306152 |
comparison
equal
deleted
inserted
replaced
2090:b66aca8e8dce | 2091:bc3a118644d5 |
---|---|
209 if (!strcmp(p->option, "message")) { | 209 if (!strcmp(p->option, "message")) { |
210 a = g_new0(struct away_message, 1); | 210 a = g_new0(struct away_message, 1); |
211 | 211 |
212 g_snprintf(a->name, sizeof(a->name), "%s", p->value[0]); | 212 g_snprintf(a->name, sizeof(a->name), "%s", p->value[0]); |
213 g_snprintf(a->message, sizeof(a->message), "%s", p->value[1]); | 213 g_snprintf(a->message, sizeof(a->message), "%s", p->value[1]); |
214 filter_break(a->name); | |
214 filter_break(a->message); | 215 filter_break(a->message); |
215 away_messages = g_slist_insert_sorted(away_messages, a, sort_awaymsg_list); | 216 away_messages = g_slist_insert_sorted(away_messages, a, sort_awaymsg_list); |
216 } | 217 } |
217 /* auto { time } { default message } */ | 218 /* auto { time } { default message } */ |
218 else if (!strcmp(p->option, "auto")) { | 219 else if (!strcmp(p->option, "auto")) { |
275 p = parse_line(buf); | 276 p = parse_line(buf); |
276 if (!strcmp(p->option, "entry")) { | 277 if (!strcmp(p->option, "entry")) { |
277 b = g_new0(struct buddy_pounce, 1); | 278 b = g_new0(struct buddy_pounce, 1); |
278 | 279 |
279 g_snprintf(b->name, sizeof(b->name), "%s", p->value[0]); | 280 g_snprintf(b->name, sizeof(b->name), "%s", p->value[0]); |
281 filter_break(b->name); | |
280 g_snprintf(b->message, sizeof(b->message), "%s", p->value[1]); | 282 g_snprintf(b->message, sizeof(b->message), "%s", p->value[1]); |
283 filter_break(b->message); | |
281 g_snprintf(b->command, sizeof(b->command), "%s", p->value[2]); | 284 g_snprintf(b->command, sizeof(b->command), "%s", p->value[2]); |
285 filter_break(b->command); | |
282 | 286 |
283 b->options = atoi(p->value[3]); | 287 b->options = atoi(p->value[3]); |
284 | 288 |
285 g_snprintf(b->pouncer, sizeof(b->pouncer), "%s", p->value[4]); | 289 g_snprintf(b->pouncer, sizeof(b->pouncer), "%s", p->value[4]); |
290 filter_break(b->pouncer); | |
286 b->protocol = atoi(p->value[5]); | 291 b->protocol = atoi(p->value[5]); |
287 | 292 |
288 g_snprintf(b->sound, sizeof(b->sound), "%s", p->value[6]); | 293 g_snprintf(b->sound, sizeof(b->sound), "%s", p->value[6]); |
294 filter_break(b->sound); | |
289 | 295 |
290 filter_break(b->message); | |
291 buddy_pounces = g_list_append(buddy_pounces, b); | 296 buddy_pounces = g_list_append(buddy_pounces, b); |
292 } | 297 } |
293 } | 298 } |
294 } | 299 } |
295 | 300 |
358 p = parse_line(buf); | 363 p = parse_line(buf); |
359 if (!strcmp(p->option, "entry")) { | 364 if (!strcmp(p->option, "entry")) { |
360 b = g_new0(struct chat_room, 1); | 365 b = g_new0(struct chat_room, 1); |
361 | 366 |
362 g_snprintf(b->name, sizeof(b->name), "%s", p->value[0]); | 367 g_snprintf(b->name, sizeof(b->name), "%s", p->value[0]); |
368 filter_break(b->name); | |
363 | 369 |
364 b->exchange = atoi(p->value[1]); | 370 b->exchange = atoi(p->value[1]); |
365 | 371 |
366 chat_rooms = g_list_append(chat_rooms, b); | 372 chat_rooms = g_list_append(chat_rooms, b); |
367 } | 373 } |
443 /* this is such a fucked up hack. the reason we do this is because after | 449 /* this is such a fucked up hack. the reason we do this is because after |
444 * we load a plugin the gaimrc file gets rewrit. so we have to remember | 450 * we load a plugin the gaimrc file gets rewrit. so we have to remember |
445 * which ones to load before loading them. */ | 451 * which ones to load before loading them. */ |
446 while (load) { | 452 while (load) { |
447 if (load->data) | 453 if (load->data) |
448 load_plugin(load->data); | 454 load_plugin(filter_break(load->data)); |
449 g_free(load->data); | 455 g_free(load->data); |
450 load = g_slist_remove(load, load->data); | 456 load = g_slist_remove(load, load->data); |
451 } | 457 } |
452 } | 458 } |
453 #endif /* GAIM_PLUGINS */ | 459 #endif /* GAIM_PLUGINS */ |