Mercurial > pidgin
diff src/gaimrc.c @ 1254:9da444224f0e
[gaim-migrate @ 1264]
bmiller's away-on-signon patch. does --away=mesg use "mesg" or the away message titled "mesg"? i didn't look hehe. but if it uses "mesg" instead of the away message titled "mesg" then i'm not sure it works.... i figured someone would report a bug if it didn't work
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Thu, 14 Dec 2000 00:11:59 +0000 |
| parents | b5783215b245 |
| children | 6210d06da99b |
line wrap: on
line diff
--- a/src/gaimrc.c Wed Dec 13 23:59:46 2000 +0000 +++ b/src/gaimrc.c Thu Dec 14 00:11:59 2000 +0000 @@ -211,7 +211,8 @@ /* auto { time } { default message } */ else if (!strcmp(p->option, "auto")) { auto_away = atoi(p->value[0]); - default_away = atoi(p->value[1]); + default_away = g_slist_nth_data(away_messages, + atoi(p->value[1])); } } } @@ -240,7 +241,8 @@ awy = g_slist_next(awy); } - fprintf(f, "\tauto { %d } { %d }\n", auto_away, default_away); + fprintf(f, "\tauto { %d } { %d }\n", auto_away, + g_slist_index(away_messages, default_away)); } else { fprintf(f, "\tmessage { boring default } { %s }\n", BORING_DEFAULT_AWAY_MSG); fprintf(f, "\tauto { 0 } { 0 }\n"); @@ -771,7 +773,7 @@ report_idle = IDLE_SCREENSAVER; web_browser = BROWSER_NETSCAPE; auto_away = 10; - default_away = 0; + default_away = NULL; g_snprintf(web_command, sizeof(web_command), "xterm -e lynx %%s"); blist_pos.width = 0;
