about summary refs log tree commit diff stats
path: root/src/window_list.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-01-24 01:30:02 +0000
committerJames Booth <boothj5@gmail.com>2016-01-24 01:30:02 +0000
commit7cacee87817f523a8cb60de27cd0745882fe6eb9 (patch)
treef4bc3ba80bb3df3103d182b659c0ff86b45b313c /src/window_list.c
parent6d8a3e2020067a9a322b27a311e83a892f79962e (diff)
downloadprofani-tty-7cacee87817f523a8cb60de27cd0745882fe6eb9.tar.gz
Added private chat roster group
Diffstat (limited to 'src/window_list.c')
-rw-r--r--src/window_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window_list.c b/src/window_list.c
index cd6724ac..efb6e331 100644
--- a/src/window_list.c
+++ b/src/window_list.c
@@ -185,7 +185,7 @@ wins_get_private_chats(const char *const roomjid)
         ProfWin *window = curr->data;
         if (window->type == WIN_PRIVATE) {
             ProfPrivateWin *privatewin = (ProfPrivateWin*)window;
-            if (g_str_has_prefix(privatewin->fulljid, prefix->str)) {
+            if (roomjid == NULL || g_str_has_prefix(privatewin->fulljid, prefix->str)) {
                 result = g_list_append(result, privatewin);
             }
         }