diff --git a/src/common/connection.py b/src/common/connection.py index ab5864d0b..d8bf6d3e3 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -22,11 +22,11 @@ import os import time import sre import traceback -import helpers from calendar import timegm import common.xmpp +from common import helpers from common import gajim from common import GnuPG USE_GPG = GnuPG.USE_GPG diff --git a/src/roster_window.py b/src/roster_window.py index c6ca916a5..b3ac30853 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -801,11 +801,12 @@ class Roster_window: else: self.plugin.sleeper_state[account] = 0 - def get_status_message(self, status): - if (status == 'online' and not gajim.config.get('ask_online_status')) or \ - (status == 'offline' and not gajim.config.get('ask_offline_status')): - return status - dlg = dialogs.Change_status_message_dialog(self.plugin, status) + def get_status_message(self, show): + if (show == 'online' and not gajim.config.get('ask_online_status')) or \ + (show == 'offline' and not gajim.config.get('ask_offline_status')): + lowered_uf_status_msg = helpers.get_uf_show(show).lower() + return "I'm %s" % lowered_uf_status_msg + dlg = dialogs.Change_status_message_dialog(self.plugin, show) message = dlg.run() return message