comparison src/server.c @ 2345:a49e8f1afbc4

[gaim-migrate @ 2358] you say potato, i say potato you say tomato, i say tomato potato, potato tomato, tomato let's call the whole thing off. *sigh*. it just doesn't work as well when it's typed. but you wouldn't want to hear me sing it. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 22 Sep 2001 09:14:27 +0000
parents b53cd5b63a99
children ad56a93661fc
comparison
equal deleted inserted replaced
2344:19ea44f74a88 2345:a49e8f1afbc4
300 (*g->prpl->join_chat)(g, data); 300 (*g->prpl->join_chat)(g, data);
301 } 301 }
302 302
303 void serv_chat_invite(struct gaim_connection *g, int id, char *message, char *name) 303 void serv_chat_invite(struct gaim_connection *g, int id, char *message, char *name)
304 { 304 {
305 plugin_event(event_chat_send_invite, g, (void *)id, name, message);
305 if (g->prpl && g->prpl->chat_invite) 306 if (g->prpl && g->prpl->chat_invite)
306 (*g->prpl->chat_invite)(g, id, message, name); 307 (*g->prpl->chat_invite)(g, id, message, name);
307 } 308 }
308 309
309 void serv_chat_leave(struct gaim_connection *g, int id) 310 void serv_chat_leave(struct gaim_connection *g, int id)
834 835
835 struct conversation *serv_got_joined_chat(struct gaim_connection *gc, int id, char *name) 836 struct conversation *serv_got_joined_chat(struct gaim_connection *gc, int id, char *name)
836 { 837 {
837 struct conversation *b; 838 struct conversation *b;
838 839
839 plugin_event(event_chat_join, gc, name, 0, 0); 840 plugin_event(event_chat_join, gc, (void *)id, name, 0);
840 841
841 b = (struct conversation *)g_new0(struct conversation, 1); 842 b = (struct conversation *)g_new0(struct conversation, 1);
842 gc->buddy_chats = g_slist_append(gc->buddy_chats, b); 843 gc->buddy_chats = g_slist_append(gc->buddy_chats, b);
843 chats = g_list_append(chats, b); 844 chats = g_list_append(chats, b);
844 845
892 } 893 }
893 894
894 if (!b) 895 if (!b)
895 return; 896 return;
896 897
897 plugin_event(event_chat_leave, g, b->name, 0, 0); 898 plugin_event(event_chat_leave, g, (void *)b->id, 0, 0);
898 899
899 debug_printf("Leaving room %s.\n", b->name); 900 debug_printf("Leaving room %s.\n", b->name);
900 901
901 g->buddy_chats = g_slist_remove(g->buddy_chats, b); 902 g->buddy_chats = g_slist_remove(g->buddy_chats, b);
902 903
919 920
920 } 921 }
921 if (!b) 922 if (!b)
922 return; 923 return;
923 924
924 if (plugin_event(event_chat_recv, g, b->name, who, message)) 925 if (plugin_event(event_chat_recv, g, (void *)b->id, who, message))
925 return; 926 return;
926 927
927 buf = g_malloc(MAX(strlen(message) * 2, 8192)); 928 buf = g_malloc(MAX(strlen(message) * 2, 8192));
928 strcpy(buf, message); 929 strcpy(buf, message);
929 930