Changeset 6b56512


Ignore:
Timestamp:
2015-08-08T04:29:49Z (9 years ago)
Author:
dequis <dx@…>
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)
Message:

Pass 'reason' values around in imcb_chat_remove_buddy/chat_remove_user

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r4850065 r6b56512  
    654654}
    655655
    656 static gboolean bee_irc_chat_remove_user(bee_t *bee, struct groupchat *c, bee_user_t *bu)
     656static gboolean bee_irc_chat_remove_user(bee_t *bee, struct groupchat *c, bee_user_t *bu, const char *reason)
    657657{
    658658        irc_t *irc = bee->ui_data;
     
    666666           using imcb_chat_free() and the channel was IRC_CHANNEL_TEMP, we get into
    667667           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);
    669669
    670670        return TRUE;
  • protocols/bee.h

    r4850065 r6b56512  
    119119        gboolean (*chat_msg)(bee_t *bee, struct groupchat *c, bee_user_t *bu, const char *msg, time_t sent_at);
    120120        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);
    122122        gboolean (*chat_topic)(bee_t *bee, struct groupchat *c, const char *new_topic, bee_user_t *bu);
    123123        gboolean (*chat_name_hint)(bee_t *bee, struct groupchat *c, const char *name);
  • protocols/bee_chat.c

    r4850065 r6b56512  
    230230
    231231        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);
    233233        }
    234234}
Note: See TracChangeset for help on using the changeset viewer.