diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/win_types.h | 1 | ||||
-rw-r--r-- | src/ui/window.c | 1 | ||||
-rw-r--r-- | src/xmpp/iq.c | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/win_types.h b/src/ui/win_types.h index 5307a483..68ed719e 100644 --- a/src/ui/win_types.h +++ b/src/ui/win_types.h @@ -165,6 +165,7 @@ typedef struct prof_chat_win_t { typedef struct prof_muc_win_t { ProfWin window; char *roomjid; + char *room_name; int unread; gboolean unread_mentions; gboolean unread_triggers; diff --git a/src/ui/window.c b/src/ui/window.c index c062e694..9f360cbb 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -493,6 +493,7 @@ win_free(ProfWin* window) { ProfMucWin *mucwin = (ProfMucWin*)window; free(mucwin->roomjid); + free(mucwin->room_name); free(mucwin->enctext); free(mucwin->message_char); break; diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index 7589c547..0e4dd151 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -2077,6 +2077,10 @@ _room_info_response_id_handler(xmpp_stanza_t *const stanza, void *const userdata if (name) { identity->name = strdup(name); + ProfMucWin *mucwin = wins_get_muc(cb_data->room); + if (mucwin) { + mucwin->room_name = strdup(name); + } } else { identity->name = NULL; } |