Mercurial > pidgin
diff src/server.c @ 258:1eeece1c7b7b
[gaim-migrate @ 268]
Small changes to chat.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 24 May 2000 10:07:01 +0000 |
parents | 7615d22ad227 |
children | 325d9804df10 |
line wrap: on
line diff
--- a/src/server.c Wed May 24 07:25:33 2000 +0000 +++ b/src/server.c Wed May 24 10:07:01 2000 +0000 @@ -473,6 +473,22 @@ #ifndef USE_OSCAR g_snprintf(buf, sizeof(buf)/2, "toc_chat_invite %d \"%s\" %s", id, message, normalize(name)); sflap_send(buf, -1, TYPE_DATA); +#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_invite(gaim_sess, gaim_conn, name, message, 0x4, b->name, 0x1); #endif } @@ -509,8 +525,8 @@ 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); + do_error_dialog("Sorry, Oscar doesn't whisper. Send an IM.", + "Gaim - Chat"); #endif }