diff plugins/icq/gaim_icq.c @ 1402:65f4a0325022

[gaim-migrate @ 1412] whoops. this should work better. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 11 Jan 2001 08:02:35 +0000
parents bf041349b11e
children 96e93119268d
line wrap: on
line diff
--- a/plugins/icq/gaim_icq.c	Wed Jan 10 22:15:24 2001 +0000
+++ b/plugins/icq/gaim_icq.c	Thu Jan 11 08:02:35 2001 +0000
@@ -331,9 +331,12 @@
 		icq_ChangeStatus(id->link, STATUS_FREE_CHAT);
 	else if (!strcmp(state, "Invisible"))
 		icq_ChangeStatus(id->link, STATUS_INVISIBLE);
-	else if (!strcmp(state, GAIM_AWAY_CUSTOM))
-		/* we have to do this even though we don't have a custom state */
-		icq_ChangeStatus(id->link, STATUS_NA);
+	else if (!strcmp(state, GAIM_AWAY_CUSTOM)) {
+		if (msg)
+			icq_ChangeStatus(id->link, STATUS_NA);
+		else
+			icq_ChangeStatus(id->link, STATUS_ONLINE);
+	}
 }
 
 static char **icq_list_icon(int uc) {