improved status messages
This commit is contained in:
parent
bc1a96e740
commit
87d90e7aaf
2 changed files with 7 additions and 6 deletions
|
@ -22,11 +22,11 @@ import os
|
||||||
import time
|
import time
|
||||||
import sre
|
import sre
|
||||||
import traceback
|
import traceback
|
||||||
import helpers
|
|
||||||
from calendar import timegm
|
from calendar import timegm
|
||||||
|
|
||||||
import common.xmpp
|
import common.xmpp
|
||||||
|
|
||||||
|
from common import helpers
|
||||||
from common import gajim
|
from common import gajim
|
||||||
from common import GnuPG
|
from common import GnuPG
|
||||||
USE_GPG = GnuPG.USE_GPG
|
USE_GPG = GnuPG.USE_GPG
|
||||||
|
|
|
@ -801,11 +801,12 @@ class Roster_window:
|
||||||
else:
|
else:
|
||||||
self.plugin.sleeper_state[account] = 0
|
self.plugin.sleeper_state[account] = 0
|
||||||
|
|
||||||
def get_status_message(self, status):
|
def get_status_message(self, show):
|
||||||
if (status == 'online' and not gajim.config.get('ask_online_status')) or \
|
if (show == 'online' and not gajim.config.get('ask_online_status')) or \
|
||||||
(status == 'offline' and not gajim.config.get('ask_offline_status')):
|
(show == 'offline' and not gajim.config.get('ask_offline_status')):
|
||||||
return status
|
lowered_uf_status_msg = helpers.get_uf_show(show).lower()
|
||||||
dlg = dialogs.Change_status_message_dialog(self.plugin, status)
|
return "I'm %s" % lowered_uf_status_msg
|
||||||
|
dlg = dialogs.Change_status_message_dialog(self.plugin, show)
|
||||||
message = dlg.run()
|
message = dlg.run()
|
||||||
return message
|
return message
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue