comparison src/protocols/icq/gaim_icq.c @ 2501:227cc42ffa6e

[gaim-migrate @ 2514] i should have hidden something ultra-secret in this. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 14 Oct 2001 11:36:36 +0000
parents 569ae9f2bb89
children 3ec36a342496
comparison
equal deleted inserted replaced
2500:1697ecbf1bcc 2501:227cc42ffa6e
131 struct gaim_connection *gc = link->icq_UserData; 131 struct gaim_connection *gc = link->icq_UserData;
132 guint status; 132 guint status;
133 char buf[256]; 133 char buf[256];
134 134
135 g_snprintf(buf, sizeof buf, "%lu", uin); 135 g_snprintf(buf, sizeof buf, "%lu", uin);
136 status = (st == STATUS_ONLINE) ? UC_NORMAL : UC_UNAVAILABLE | (st << 5); 136 status = (st == STATUS_ONLINE) ? 0 : UC_UNAVAILABLE | (st << 1);
137 serv_got_update(gc, buf, 1, 0, 0, 0, status, 0); 137 serv_got_update(gc, buf, 1, 0, 0, 0, status, 0);
138 } 138 }
139 139
140 static void icq_user_offline(icq_Link *link, unsigned long uin) { 140 static void icq_user_offline(icq_Link *link, unsigned long uin) {
141 struct gaim_connection *gc = link->icq_UserData; 141 struct gaim_connection *gc = link->icq_UserData;
147 struct gaim_connection *gc = link->icq_UserData; 147 struct gaim_connection *gc = link->icq_UserData;
148 guint status; 148 guint status;
149 char buf[256]; 149 char buf[256];
150 150
151 g_snprintf(buf, sizeof buf, "%lu", uin); 151 g_snprintf(buf, sizeof buf, "%lu", uin);
152 status = (st == STATUS_ONLINE) ? UC_NORMAL : UC_UNAVAILABLE | (st << 5); 152 status = (st == STATUS_ONLINE) ? 0 : UC_UNAVAILABLE | (st << 1);
153 serv_got_update(gc, buf, 1, 0, 0, 0, status, 0); 153 serv_got_update(gc, buf, 1, 0, 0, 0, status, 0);
154 } 154 }
155 155
156 static gboolean icq_set_timeout_cb(gpointer data) { 156 static gboolean icq_set_timeout_cb(gpointer data) {
157 icq_HandleTimeout(); 157 icq_HandleTimeout();
398 } 398 }
399 } 399 }
400 400
401 static char **icq_list_icon(int uc) { 401 static char **icq_list_icon(int uc) {
402 guint status; 402 guint status;
403 if (uc == UC_NORMAL) 403 if (uc == 0)
404 return icon_online_xpm; 404 return icon_online_xpm;
405 status = uc >> 5; 405 status = uc >> 1;
406 if (status & STATUS_NA) 406 if (status & STATUS_NA)
407 return icon_na_xpm; 407 return icon_na_xpm;
408 if (status & STATUS_DND) 408 if (status & STATUS_DND)
409 return icon_dnd_xpm; 409 return icon_dnd_xpm;
410 if (status & STATUS_OCCUPIED) 410 if (status & STATUS_OCCUPIED)
451 m = g_list_append(m, puo); 451 m = g_list_append(m, puo);
452 452
453 return m; 453 return m;
454 } 454 }
455 455
456 static GList *icq_away_states() { 456 static GList *icq_away_states(struct gaim_connection *gc) {
457 GList *m = NULL; 457 GList *m = NULL;
458 458
459 m = g_list_append(m, "Online"); 459 m = g_list_append(m, "Online");
460 m = g_list_append(m, "Away"); 460 m = g_list_append(m, "Away");
461 m = g_list_append(m, "Do Not Disturb"); 461 m = g_list_append(m, "Do Not Disturb");