diff options
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/server_events.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c index bb31f9c6..269de51b 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -89,15 +89,13 @@ sv_ev_login_account_success(char *account_name, gboolean secured) ui_handle_login_account_success(account, secured); - // attempt to rejoin rooms with passwords + // attempt to rejoin all rooms GList *rooms = muc_rooms(); GList *curr = rooms; while (curr) { char *password = muc_password(curr->data); - if (password) { - char *nick = muc_nick(curr->data); - presence_join_room(curr->data, nick, password); - } + char *nick = muc_nick(curr->data); + presence_join_room(curr->data, nick, password); curr = g_list_next(curr); } g_list_free(rooms); |