diff src/server.c @ 1401:bf041349b11e

[gaim-migrate @ 1411] abliity to set accounts away independent of each other. also allows for all the other states (like in yahoo and icq). probably breaks MSN, so don't use it until rob fixes it. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 10 Jan 2001 22:15:24 +0000
parents 730a1a19b4cc
children 96e93119268d
line wrap: on
line diff
--- a/src/server.c	Wed Jan 10 19:56:39 2001 +0000
+++ b/src/server.c	Wed Jan 10 22:15:24 2001 +0000
@@ -158,7 +158,13 @@
 }
 
 
-void serv_set_away(char *message)
+void serv_set_away(struct gaim_connection *gc, char *state, char *message)
+{
+	if (gc && gc->prpl && gc->prpl->set_away)
+		(*gc->prpl->set_away)(gc, state, message);
+}
+
+void serv_set_away_all(char *message)
 {
 	GSList *c = connections;
 	struct gaim_connection *g;
@@ -166,7 +172,7 @@
 	while (c) {
 		g = (struct gaim_connection *)c->data;
 		if (g->prpl && g->prpl->set_away)
-			(*g->prpl->set_away)(g, message);
+			(*g->prpl->set_away)(g, GAIM_AWAY_CUSTOM, message);
 		c = c->next;
 	}
 }