Mercurial > pidgin
comparison src/server.c @ 2359:ad56a93661fc
[gaim-migrate @ 2372]
hi usa
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 26 Sep 2001 00:53:49 +0000 |
parents | a49e8f1afbc4 |
children | 2927c2c26fe6 |
comparison
equal
deleted
inserted
replaced
2358:202222f100b6 | 2359:ad56a93661fc |
---|---|
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 char *buffy = message && *message ? g_strdup(message) : NULL; |
306 plugin_event(event_chat_send_invite, g, (void *)id, name, &buffy); | |
306 if (g->prpl && g->prpl->chat_invite) | 307 if (g->prpl && g->prpl->chat_invite) |
307 (*g->prpl->chat_invite)(g, id, message, name); | 308 (*g->prpl->chat_invite)(g, id, buffy, name); |
309 if (buffy) | |
310 g_free(buffy); | |
308 } | 311 } |
309 | 312 |
310 void serv_chat_leave(struct gaim_connection *g, int id) | 313 void serv_chat_leave(struct gaim_connection *g, int id) |
311 { | 314 { |
312 /* i think this is the only one this should be necessary for since this is the | 315 /* i think this is the only one this should be necessary for since this is the |