diff options
author | James Booth <boothj5@gmail.com> | 2014-10-18 01:37:52 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-10-18 01:37:52 +0100 |
commit | 67755ca74d7d7ec53a1365eacfdca883f4c376f2 (patch) | |
tree | 65180fac8673e0730e9ed2593ebde13e8f5b1c79 /src/server_events.c | |
parent | 3790b16299efb29843d4a221c41047d094616b5e (diff) | |
download | profani-tty-67755ca74d7d7ec53a1365eacfdca883f4c376f2.tar.gz |
Added reason to role/affiliation changes
Diffstat (limited to 'src/server_events.c')
-rw-r--r-- | src/server_events.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server_events.c b/src/server_events.c index 631a190d..0086bd7f 100644 --- a/src/server_events.c +++ b/src/server_events.c @@ -667,8 +667,8 @@ handle_ping_error_result(const char * const from, const char * const error) void handle_muc_self_online(const char * const room, const char * const nick, gboolean config_required, - const char * const role, const char * const affiliation, const char * const jid, const char * const show, - const char * const status) + const char * const role, const char * const affiliation, const char * const actor, const char * const reason, + const char * const jid, const char * const show, const char * const status) { muc_roster_add(room, nick, jid, role, affiliation, show, status); char *old_role = muc_role_str(room); @@ -721,15 +721,15 @@ handle_muc_self_online(const char * const room, const char * const nick, gboolea } else { // both changed if ((g_strcmp0(role, old_role) != 0) && (g_strcmp0(affiliation, old_affiliation) != 0)) { - ui_room_role_and_affiliation_change(room, role, affiliation); + ui_room_role_and_affiliation_change(room, role, affiliation, actor, reason); // role changed } else if (g_strcmp0(role, old_role) != 0) { - ui_room_role_change(room, role); + ui_room_role_change(room, role, actor, reason); // affiliation changed } else if (g_strcmp0(affiliation, old_affiliation) != 0) { - ui_room_affiliation_change(room, affiliation); + ui_room_affiliation_change(room, affiliation, actor, reason); } } |