cleanup and a FIXME for dkirov

This commit is contained in:
Nikos Kouremenos 2005-08-16 19:26:11 +00:00
parent 1992351a67
commit ea47fd6f08
2 changed files with 5 additions and 3 deletions

View File

@ -70,7 +70,10 @@ events_for_ui = {}
#... and its mutex
mutex_events_for_ui = mutex.mutex()
socks5quue = None
socks5quue = None # FIXME: this var has a typo in queue but I think it is also not used!
SHOW_LIST = ['offline', 'connecting', 'online', 'chat', 'away', 'xa', 'dnd',
'invisible']
def get_nick_from_jid(jid):
pos = jid.find('@')

View File

@ -190,8 +190,7 @@ class NotificationAreaTooltip(BaseTooltip, StatusTable):
status_idx = gajim.connections[account].connected
# uncomment the following to hide offline accounts
# if status_idx == 0: continue
from common.connection import STATUS_LIST
status = STATUS_LIST[status_idx]
status = gajim.SHOW_LIST[status_idx]
message = gajim.connections[account].status
single_line = helpers.get_uf_show(status)
if message is None: