Mercurial > pidgin
comparison src/server.c @ 6509:e74e378e86bf
[gaim-migrate @ 7026]
This changes the sending and receiving signals to use GaimAccounts and
recipient/sender usernames rather than GaimConversations. The display*
signals aren't changed yet because I'm not sure I fully grok them.
committer: Tailor Script <tailor@pidgin.im>
| author | Ethan Blanton <elb@pidgin.im> |
|---|---|
| date | Tue, 19 Aug 2003 23:52:07 +0000 |
| parents | b6f7fcafc908 |
| children | 4c9e8867c45c |
comparison
equal
deleted
inserted
replaced
| 6508:cbd24b37350d | 6509:e74e378e86bf |
|---|---|
| 856 strcpy(buffy, msg); | 856 strcpy(buffy, msg); |
| 857 angel = g_strdup(who); | 857 angel = g_strdup(who); |
| 858 | 858 |
| 859 plugin_return = GPOINTER_TO_INT( | 859 plugin_return = GPOINTER_TO_INT( |
| 860 gaim_signal_emit_return_1(gaim_conversations_get_handle(), | 860 gaim_signal_emit_return_1(gaim_conversations_get_handle(), |
| 861 "received-im-msg", | 861 "received-im-msg", gc->account, |
| 862 cnv, &angel, &buffy, &flags)); | 862 &angel, &buffy, &flags)); |
| 863 | 863 |
| 864 if (!buffy || !angel || plugin_return) { | 864 if (!buffy || !angel || plugin_return) { |
| 865 if (buffy) | 865 if (buffy) |
| 866 g_free(buffy); | 866 g_free(buffy); |
| 867 if (angel) | 867 if (angel) |
| 1470 strcpy(buffy, message); | 1470 strcpy(buffy, message); |
| 1471 angel = g_strdup(who); | 1471 angel = g_strdup(who); |
| 1472 | 1472 |
| 1473 plugin_return = GPOINTER_TO_INT( | 1473 plugin_return = GPOINTER_TO_INT( |
| 1474 gaim_signal_emit_return_1(gaim_conversations_get_handle(), | 1474 gaim_signal_emit_return_1(gaim_conversations_get_handle(), |
| 1475 "received-chat-msg", | 1475 "received-chat-msg", g->account, |
| 1476 conv, &angel, &buffy)); | 1476 &angel, &buffy, |
| 1477 gaim_chat_get_id(GAIM_CHAT(conv)))); | |
| 1477 | 1478 |
| 1478 if (!buffy || !angel || plugin_return) { | 1479 if (!buffy || !angel || plugin_return) { |
| 1479 if (buffy) | 1480 if (buffy) |
| 1480 g_free(buffy); | 1481 g_free(buffy); |
| 1481 if (angel) | 1482 if (angel) |
