src/protocols/icq/gaim_icq.c

changeset 2501
5e1fa4926c93
parent 2382
69a4e3665132
child 2515
6565ac055c1b
--- a/src/protocols/icq/gaim_icq.c	Sun Oct 14 05:52:36 2001 +0000
+++ b/src/protocols/icq/gaim_icq.c	Sun Oct 14 11:36:36 2001 +0000
@@ -133,7 +133,7 @@
 	char buf[256];
 
 	g_snprintf(buf, sizeof buf, "%lu", uin);
-	status = (st == STATUS_ONLINE) ? UC_NORMAL : UC_UNAVAILABLE | (st << 5);
+	status = (st == STATUS_ONLINE) ? 0 : UC_UNAVAILABLE | (st << 1);
 	serv_got_update(gc, buf, 1, 0, 0, 0, status, 0);
 }
 
@@ -149,7 +149,7 @@
 	char buf[256];
 
 	g_snprintf(buf, sizeof buf, "%lu", uin);
-	status = (st == STATUS_ONLINE) ? UC_NORMAL : UC_UNAVAILABLE | (st << 5);
+	status = (st == STATUS_ONLINE) ? 0 : UC_UNAVAILABLE | (st << 1);
 	serv_got_update(gc, buf, 1, 0, 0, 0, status, 0);
 }
 
@@ -400,9 +400,9 @@
 
 static char **icq_list_icon(int uc) {
 	guint status;
-	if (uc == UC_NORMAL)
+	if (uc == 0)
 		return icon_online_xpm;
-	status = uc >> 5;
+	status = uc >> 1;
 	if (status & STATUS_NA)
 		return icon_na_xpm;
 	if (status & STATUS_DND)
@@ -453,7 +453,7 @@
 	return m;
 }
 
-static GList *icq_away_states() {
+static GList *icq_away_states(struct gaim_connection *gc) {
 	GList *m = NULL;
 
 	m = g_list_append(m, "Online");

mercurial