diff options
author | mathieui <mathieui@mathieui.net> | 2012-10-14 20:24:47 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-10-14 20:24:47 +0200 |
commit | 931835e22bdd014a4460f04c7c14b9766ea6458a (patch) | |
tree | 9c4cfeef14d669dcab1f2f21f0c7280b6b459ce8 /src/tabs.py | |
parent | fd14f700b6b9315afca975c818d9bf5883cd554a (diff) | |
download | poezio-931835e22bdd014a4460f04c7c14b9766ea6458a.tar.gz poezio-931835e22bdd014a4460f04c7c14b9766ea6458a.tar.bz2 poezio-931835e22bdd014a4460f04c7c14b9766ea6458a.tar.xz poezio-931835e22bdd014a4460f04c7c14b9766ea6458a.zip |
Rename /connect to /reconnect and make it rostertab-only
Diffstat (limited to 'src/tabs.py')
-rw-r--r-- | src/tabs.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py index aacbb4c9..1c58f0c9 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -1907,6 +1907,7 @@ class RosterInfoTab(Tab): self.commands['groupmove'] = (self.command_groupmove, _("Usage: /groupchange <jid> <old group> <new group>\nMoves the given JID from the old group to the new group."), self.completion_groupmove) self.commands['groupremove'] = (self.command_groupremove, _("Usage: /groupremove <jid> <group>\nRemove the given JID from the given group."), self.completion_groupremove) self.commands['remove'] = (self.command_remove, _("Usage: /remove [jid]\nRemove: Remove the specified JID from your roster. This wil unsubscribe you from its presence, cancel its subscription to yours, and remove the item from your roster."), self.completion_remove) + self.commands['reconnect'] = (self.command_reconnect, _('Usage: /reconnect\nConnect: Disconnect from the remote server if you are currently connected and then connect to it again.'), None) self.commands['export'] = (self.command_export, _("Usage: /export [/path/to/file]\nExport: Export your contacts into /path/to/file if specified, or $HOME/poezio_contacts if not."), self.completion_file) self.commands['import'] = (self.command_import, _("Usage: /import [/path/to/file]\nImport: Import your contacts from /path/to/file if specified, or $HOME/poezio_contacts if not."), self.completion_file) self.commands['clear_infos'] = (self.command_clear_infos, _("Usage: /clear_infos\nClear Infos: Use this command to clear the info buffer."), None) @@ -2022,6 +2023,12 @@ class RosterInfoTab(Tab): self.core.xmpp.plugin['xep_0191'].get_blocked(block=False, callback=callback) + def command_reconnect(self, args=None): + """ + /reconnect + """ + self.core.disconnect(reconnect=True) + def command_activity(self, arg=None): """ /activity [jid] |