diff options
author | dequis <dx@dxzone.com.ar> | 2015-08-02 16:21:56 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-08-08 01:29:49 -0300 |
commit | 6b56512c9f8c38b71195f75b414f79f73ecbb701 (patch) | |
tree | 770cdefa69e20152a198f1ecda2e3dda5e78620f /irc_im.c | |
parent | 4850065cf2518aa26b22b5609bda2459ac22f403 (diff) |
Pass 'reason' values around in imcb_chat_remove_buddy/chat_remove_user
Diffstat (limited to 'irc_im.c')
-rw-r--r-- | irc_im.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -653,7 +653,7 @@ static gboolean bee_irc_chat_add_user(bee_t *bee, struct groupchat *c, bee_user_ return TRUE; } -static gboolean bee_irc_chat_remove_user(bee_t *bee, struct groupchat *c, bee_user_t *bu) +static gboolean bee_irc_chat_remove_user(bee_t *bee, struct groupchat *c, bee_user_t *bu, const char *reason) { irc_t *irc = bee->ui_data; irc_channel_t *ic = c->ui_data; @@ -665,7 +665,7 @@ static gboolean bee_irc_chat_remove_user(bee_t *bee, struct groupchat *c, bee_us /* TODO: Possible bug here: If a module removes $user here instead of just using imcb_chat_free() and the channel was IRC_CHANNEL_TEMP, we get into a broken state around here. */ - irc_channel_del_user(ic, bu == bee->user ? irc->user : bu->ui_data, IRC_CDU_PART, NULL); + irc_channel_del_user(ic, bu == bee->user ? irc->user : bu->ui_data, IRC_CDU_PART, reason); return TRUE; } |