Mercurial > pidgin.yaz
diff src/server.c @ 248:cfc73b8501a7
[gaim-migrate @ 258]
Oscar chat is there now. Adam will be happy, that's the only thing he asked
me specifically about.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 21 May 2000 11:58:18 +0000 |
parents | f6e8ea29b24f |
children | 810c595258c8 |
line wrap: on
line diff
--- a/src/server.c Sat May 20 23:00:20 2000 +0000 +++ b/src/server.c Sun May 21 11:58:18 2000 +0000 @@ -442,6 +442,8 @@ #ifndef USE_OSCAR g_snprintf(buf, sizeof(buf)/2, "toc_chat_join %d \"%s\"", exchange, name); sflap_send(buf, -1, TYPE_DATA); +#else + aim_chat_join(gaim_sess, gaim_conn, 0x0004, name); #endif } @@ -461,6 +463,22 @@ g_snprintf(buf, 255, "toc_chat_leave %d", id); sflap_send(buf, -1, TYPE_DATA); g_free(buf); +#else + GList *bcs = buddy_chats; + struct buddy_chat *b = NULL; + + while (bcs) { + b = (struct buddy_chat *)bcs->data; + if (id == b->id) + break; + bcs = bcs->next; + b = NULL; + } + + if (!b) + return; + + aim_chat_leaveroom(gaim_sess, b->name); #endif } @@ -470,6 +488,9 @@ #ifndef USE_OSCAR g_snprintf(buf2, sizeof(buf2), "toc_chat_whisper %d %s \"%s\"", id, who, message); sflap_send(buf2, -1, TYPE_DATA); +#else + /* FIXME : libfaim doesn't whisper */ + serv_chat_send(id, message); #endif } @@ -479,6 +500,23 @@ #ifndef USE_OSCAR g_snprintf(buf, sizeof(buf), "toc_chat_send %d \"%s\"",id, message); sflap_send(buf, -1, TYPE_DATA); +#else + struct aim_conn_t *cn; + GList *bcs = buddy_chats; + struct buddy_chat *b = NULL; + + while (bcs) { + b = (struct buddy_chat *)bcs->data; + if (id == b->id) + break; + bcs = bcs->next; + b = NULL; + } + if (!b) + return; + + cn = aim_chat_getconn(gaim_sess, b->name); + aim_chat_send_im(gaim_sess, cn, message); #endif }