Mercurial > pidgin.yaz
comparison plugins/icq/gaim_icq.c @ 1232:0c7c659fc730
[gaim-migrate @ 1242]
cool pixmaps for yahoo, better signon time for yahoo/icq, better idle time for yahoo.
i have a final tomorrow. now today.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 11 Dec 2000 11:44:22 +0000 |
parents | 5186c154e90d |
children | 0a766047b4fd |
comparison
equal
deleted
inserted
replaced
1231:11d67bbda8ae | 1232:0c7c659fc730 |
---|---|
110 unsigned long ip, unsigned short port, unsigned long real_ip, | 110 unsigned long ip, unsigned short port, unsigned long real_ip, |
111 unsigned char tcp_flags) { | 111 unsigned char tcp_flags) { |
112 struct gaim_connection *gc = find_gaim_conn_by_icq_link(link); | 112 struct gaim_connection *gc = find_gaim_conn_by_icq_link(link); |
113 guint status; | 113 guint status; |
114 char buf[256]; | 114 char buf[256]; |
115 time_t t; | |
115 | 116 |
116 g_snprintf(buf, sizeof buf, "%lu", uin); | 117 g_snprintf(buf, sizeof buf, "%lu", uin); |
117 status = (st == STATUS_ONLINE) ? UC_NORMAL : UC_UNAVAILABLE | (st << 5); | 118 status = (st == STATUS_ONLINE) ? UC_NORMAL : UC_UNAVAILABLE | (st << 5); |
118 serv_got_update(gc, buf, 1, 0, 0, 0, status, 0); | 119 time(&t); |
120 serv_got_update(gc, buf, 1, 0, t, 0, status, 0); | |
119 } | 121 } |
120 | 122 |
121 static void icq_user_offline(ICQLINK *link, unsigned long uin) { | 123 static void icq_user_offline(ICQLINK *link, unsigned long uin) { |
122 struct gaim_connection *gc = find_gaim_conn_by_icq_link(link); | 124 struct gaim_connection *gc = find_gaim_conn_by_icq_link(link); |
123 char buf[256]; g_snprintf(buf, sizeof buf, "%lu", uin); | 125 char buf[256]; g_snprintf(buf, sizeof buf, "%lu", uin); |