about summary refs log tree commit diff stats
path: root/jabber.c
diff options
context:
space:
mode:
Diffstat (limited to 'jabber.c')
-rw-r--r--jabber.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/jabber.c b/jabber.c
index f3d3905f..6f1803b7 100644
--- a/jabber.c
+++ b/jabber.c
@@ -305,13 +305,10 @@ static int _jabber_presence_handler(xmpp_conn_t * const conn,
     else 
         status_str = NULL;
 
-    if (type == NULL) { // online
-        cons_show_contact_online(short_from, show_str, status_str);
-        win_show_contact_online(short_from, show_str, status_str);
-    } else { // offline
-        cons_show_contact_offline(short_from, show_str, status_str);
-        win_show_contact_offline(short_from, show_str, status_str);
-    }
+    if (type == NULL) // online
+        win_contact_online(short_from, show_str, status_str);
+    else // offline
+        win_contact_offline(short_from, show_str, status_str);
 
     return 1;
 }