mucwin_occupant_presence takes ProfMucWin

This commit is contained in:
James Booth
2015-11-02 00:14:16 +00:00
parent d505a92d1e
commit b3150ef8e1
4 changed files with 11 additions and 12 deletions

View File

@@ -658,8 +658,9 @@ sv_ev_muc_occupant_online(const char *const room, const char *const nick, const
// presence updated
if (updated) {
char *muc_status_pref = prefs_get_string(PREF_STATUSES_MUC);
if (g_strcmp0(muc_status_pref, "all") == 0) {
mucwin_occupant_presence(room, nick, show, status);
ProfMucWin *mucwin = wins_get_muc(room);
if (mucwin && (g_strcmp0(muc_status_pref, "all") == 0)) {
mucwin_occupant_presence(mucwin, nick, show, status);
}
prefs_free_string(muc_status_pref);
occupantswin_occupants(room);