| 335 |
335 |
| 336 while (buf[0] != '}') { |
336 while (buf[0] != '}') { |
| 337 if (!fgets(buf, sizeof(buf), f)) |
337 if (!fgets(buf, sizeof(buf), f)) |
| 338 return; |
338 return; |
| 339 |
339 |
| 340 if (buf[0] == '}') |
340 if (buf[0] == '}') { |
| |
341 gaim_status_sync(); |
| 341 return; |
342 return; |
| |
343 } |
| 342 |
344 |
| 343 p = parse_line(buf, &parse_buffer); |
345 p = parse_line(buf, &parse_buffer); |
| 344 if (!strcmp(p->option, "message")) { |
346 if (!strcmp(p->option, "message")) { |
| 345 a = g_new0(struct away_message, 1); |
347 a = g_new0(struct away_message, 1); |
| 346 |
348 |
| 359 a = g_new0(struct away_message, 1); |
361 a = g_new0(struct away_message, 1); |
| 360 g_snprintf(a->name, sizeof(a->name), _("boring default")); |
362 g_snprintf(a->name, sizeof(a->name), _("boring default")); |
| 361 g_snprintf(a->message, sizeof(a->message), "%s", BORING_DEFAULT_AWAY_MSG); |
363 g_snprintf(a->message, sizeof(a->message), "%s", BORING_DEFAULT_AWAY_MSG); |
| 362 away_messages = g_slist_append(away_messages, a); |
364 away_messages = g_slist_append(away_messages, a); |
| 363 } |
365 } |
| |
366 gaim_status_sync(); |
| 364 } |
367 } |
| 365 |
368 |
| 366 /* |
369 /* |
| 367 * This is temporary, and we're using it to translate the new event |
370 * This is temporary, and we're using it to translate the new event |
| 368 * and action values into the old ones. We're also adding entries for |
371 * and action values into the old ones. We're also adding entries for |