mucwin_role_change takes ProfMucWin

This commit is contained in:
James Booth
2015-11-01 22:42:31 +00:00
parent 2be3b7d9a2
commit e547ae0bcc
4 changed files with 12 additions and 6 deletions

View File

@@ -592,7 +592,10 @@ sv_ev_muc_self_online(const char *const room, const char *const nick, gboolean c
// role changed
} else if (g_strcmp0(role, old_role) != 0) {
mucwin_role_change(room, role, actor, reason);
ProfMucWin *mucwin = wins_get_muc(room);
if (mucwin) {
mucwin_role_change(mucwin, role, actor, reason);
}
// affiliation changed
} else if (g_strcmp0(affiliation, old_affiliation) != 0) {