Changeset 6b56512
- Timestamp:
- 2015-08-08T04:29:49Z (9 years ago)
- Branches:
- master
- Children:
- 83f179d6
- Parents:
- 4850065
- git-author:
- dequis <dx@…> (02-08-15 19:21:56)
- git-committer:
- dequis <dx@…> (08-08-15 04:29:49)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_im.c
r4850065 r6b56512 654 654 } 655 655 656 static gboolean bee_irc_chat_remove_user(bee_t *bee, struct groupchat *c, bee_user_t *bu )656 static gboolean bee_irc_chat_remove_user(bee_t *bee, struct groupchat *c, bee_user_t *bu, const char *reason) 657 657 { 658 658 irc_t *irc = bee->ui_data; … … 666 666 using imcb_chat_free() and the channel was IRC_CHANNEL_TEMP, we get into 667 667 a broken state around here. */ 668 irc_channel_del_user(ic, bu == bee->user ? irc->user : bu->ui_data, IRC_CDU_PART, NULL);668 irc_channel_del_user(ic, bu == bee->user ? irc->user : bu->ui_data, IRC_CDU_PART, reason); 669 669 670 670 return TRUE; -
protocols/bee.h
r4850065 r6b56512 119 119 gboolean (*chat_msg)(bee_t *bee, struct groupchat *c, bee_user_t *bu, const char *msg, time_t sent_at); 120 120 gboolean (*chat_add_user)(bee_t *bee, struct groupchat *c, bee_user_t *bu); 121 gboolean (*chat_remove_user)(bee_t *bee, struct groupchat *c, bee_user_t *bu );121 gboolean (*chat_remove_user)(bee_t *bee, struct groupchat *c, bee_user_t *bu, const char *reason); 122 122 gboolean (*chat_topic)(bee_t *bee, struct groupchat *c, const char *new_topic, bee_user_t *bu); 123 123 gboolean (*chat_name_hint)(bee_t *bee, struct groupchat *c, const char *name); -
protocols/bee_chat.c
r4850065 r6b56512 230 230 231 231 if (bee->ui->chat_remove_user && bu) { 232 bee->ui->chat_remove_user(bee, c, bu );232 bee->ui->chat_remove_user(bee, c, bu, reason); 233 233 } 234 234 }
Note: See TracChangeset
for help on using the changeset viewer.