Mercurial > pidgin
comparison src/gaimrc.c @ 6065:3a40666c08b4
[gaim-migrate @ 6515]
These be away messages. They don't do nothing that the old away messages
ain't done, but they save themselves in ~/.gaim/status.xml instead of
~/.gaimrc. Astute CVS watchers will have noticed a bit of a trend like that.
So in the future status.xml will have all sorts of cool stuff (I have big plans) but it's kinda boring for now. Also, I should've done this weeks ago. I
should stop being busy.
I'd like to give a shoutout to my boy Rob Flynn, keepin' it real in Atlanta.
You know you my boy, Dawg.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Tue, 08 Jul 2003 23:48:10 +0000 |
parents | 80e3641ee9eb |
children | 6a3b676eb36a |
comparison
equal
deleted
inserted
replaced
6064:ed3c3c38e182 | 6065:3a40666c08b4 |
---|---|
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 |