diff src/multi.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 07f0bb41bbe1
line wrap: on
line diff
--- a/src/multi.c	Wed Dec 13 23:59:46 2000 +0000
+++ b/src/multi.c	Thu Dec 14 00:11:59 2000 +0000
@@ -719,6 +719,17 @@
 
 	plugin_event(event_signon, gc, 0, 0, 0);
 
+	/* away option given? */
+	if (opt_away) {
+		away_on_login(opt_away_arg);
+		/* don't do it again */
+		opt_away = 0;
+	}
+	if (opt_away_arg != NULL) {
+		g_free (opt_away_arg);
+		opt_away_arg = NULL;
+	}
+
 	/* everything for the account editor */
 	if (!acctedit)
 		return;