Skip to content
Snippets Groups Projects
Commit 4220da24 authored by nkour's avatar nkour
Browse files

successfully (2 l) and say in sectext what vCard is about; also imporve a fixme (still fixme)

parent 290728f7
No related branches found
No related tags found
No related merge requests found
......@@ -172,8 +172,11 @@ def handle_event_information(self, unused, data):
def handle_event_ask_new_nick(self, unused, data):
#('ASK_NEW_NICK', account, (room_jid, title_text, prompt_text))
pass
# FIXME: find a way to call show_change_nick_input_dialog in GC.py
room_jid = data[0]
title = data[1]
prompt = data[2]
self.plugin.windows[account]['gc'][room_jid].show_change_nick_input_dialog(
title, prompt, room_jid = room_jid)
def handle_event_http_auth(self, account, data):
#('HTTP_AUTH', account, (method, url, iq_obj))
......@@ -855,10 +858,10 @@ def handle_event_stanza_sent(self, account, stanza):
self.windows[account]['xml_console'].print_stanza(stanza, 'outgoing')
def handle_event_vcard_published(self, account, array):
dialogs.InformationDialog(_('vCard publication succeeded'), _('Your vCard has been published successfuly.'))
dialogs.InformationDialog(_('vCard publication succeeded'), _('Your personal information has been published successfully.'))
def handle_event_vcard_not_published(self, account, array):
dialogs.InformationDialog(_('vCard publication failed'), _('There was an error while publishing your vCard, try again later.'))
dialogs.InformationDialog(_('vCard publication failed'), _('There was an error while publishing your personal information, try again later.'))
def read_sleepy(self):
'''Check idle status and change that status if needed'''
......
......@@ -458,8 +458,8 @@ def on_change_nick_menuitem_activate(self, widget):
prompt = _('Please specify the new nickname you want to use:')
self.show_change_nick_input_dialog(title, prompt, nick, room_jid)
def show_change_nick_input_dialog(self, title, prompt, proposed_nick,
room_jid):
def show_change_nick_input_dialog(self, title, prompt, proposed_nick = None,
room_jid = None):
'''asks user for new nick and on ok it sets it on room'''
instance = dialogs.InputDialog(title, prompt, proposed_nick)
response = instance.get_response()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment