mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
mucwin_occupant_affiliation_change takes ProfMucWin
This commit is contained in:
parent
288c1a9d6e
commit
799c064dff
@ -671,7 +671,10 @@ sv_ev_muc_occupant_online(const char *const room, const char *const nick, const
|
||||
|
||||
// affiliation changed
|
||||
} else if (g_strcmp0(affiliation, old_affiliation) != 0) {
|
||||
mucwin_occupant_affiliation_change(room, nick, affiliation, actor, reason);
|
||||
ProfMucWin *mucwin = wins_get_muc(room);
|
||||
if (mucwin) {
|
||||
mucwin_occupant_affiliation_change(mucwin, nick, affiliation, actor, reason);
|
||||
}
|
||||
}
|
||||
}
|
||||
occupantswin_occupants(room);
|
||||
|
@ -109,10 +109,12 @@ mucwin_occupant_role_change(ProfMucWin *mucwin, const char *const nick, const ch
|
||||
}
|
||||
|
||||
void
|
||||
mucwin_occupant_affiliation_change(const char *const roomjid, const char *const nick, const char *const affiliation,
|
||||
mucwin_occupant_affiliation_change(ProfMucWin *mucwin, const char *const nick, const char *const affiliation,
|
||||
const char *const actor, const char *const reason)
|
||||
{
|
||||
ProfWin *window = (ProfWin*)wins_get_muc(roomjid);
|
||||
assert(mucwin != NULL);
|
||||
|
||||
ProfWin *window = (ProfWin*)mucwin;
|
||||
win_vprint(window, '!', 0, NULL, NO_EOL, THEME_ROOMINFO, "", "%s's affiliation has been changed to: %s", nick, affiliation);
|
||||
if (actor) {
|
||||
win_vprint(window, '!', 0, NULL, NO_DATE | NO_EOL, THEME_ROOMINFO, "", ", by: %s", actor);
|
||||
|
@ -168,7 +168,7 @@ void mucwin_role_and_affiliation_change(ProfMucWin *mucwin, const char *const ro
|
||||
const char *const affiliation, const char *const actor, const char *const reason);
|
||||
void mucwin_occupant_role_change(ProfMucWin *mucwin, const char *const nick, const char *const role,
|
||||
const char *const actor, const char *const reason);
|
||||
void mucwin_occupant_affiliation_change(const char *const roomjid, const char *const nick,
|
||||
void mucwin_occupant_affiliation_change(ProfMucWin *mucwin, const char *const nick,
|
||||
const char *const affiliation, const char *const actor, const char *const reason);
|
||||
void mucwin_occupant_role_and_affiliation_change(const char *const roomjid, const char *const nick,
|
||||
const char *const role, const char *const affiliation, const char *const actor, const char *const reason);
|
||||
|
@ -199,7 +199,7 @@ void mucwin_role_and_affiliation_change(ProfMucWin *mucwin, const char * const r
|
||||
const char * const affiliation, const char * const actor, const char * const reason) {}
|
||||
void mucwin_occupant_role_change(ProfMucWin *mucwin, const char * const nick, const char * const role,
|
||||
const char * const actor, const char * const reason) {}
|
||||
void mucwin_occupant_affiliation_change(const char * const roomjid, const char * const nick, const char * const affiliation,
|
||||
void mucwin_occupant_affiliation_change(ProfMucWin *mucwin, const char * const nick, const char * const affiliation,
|
||||
const char * const actor, const char * const reason) {}
|
||||
void mucwin_occupant_role_and_affiliation_change(const char * const roomjid, const char * const nick, const char * const role,
|
||||
const char * const affiliation, const char * const actor, const char * const reason) {}
|
||||
|
Loading…
Reference in New Issue
Block a user