From 0ca7b52f8db2619ff9d3b236bf1cf9b01e4569da Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 26 Apr 2005 18:47:14 +0000 Subject: [PATCH] little cleanup --- src/roster_window.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 5f2a9cca3..88b4fb7f1 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -367,16 +367,11 @@ class Roster_window: name = ji else: name = jid.split('@')[0] - #get show -# show = array[jid]['show'] -# if not show: - show = 'offline' - status = '' + show = 'offline' # show is offline by default + status = '' #no status message by default - user1 = User(ji, name, array[jid]['groups'], - show, status, - array[jid]['subscription'], array[jid]['ask'], - resource, 0, '') + user1 = User(ji, name, array[jid]['groups'], show, status,\ + array[jid]['subscription'], array[jid]['ask'], resource, 0, '') # when we draw the roster, we can't have twice the same # user with 2 resources