improved status messages

This commit is contained in:
Yann Leboulanger 2005-05-27 05:56:17 +00:00
parent bc1a96e740
commit 87d90e7aaf
2 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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