summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-03-02 19:48:46 +0100
committermathieui <mathieui@mathieui.net>2013-03-02 19:50:59 +0100
commit98850ff87700097c87364ca5b331e820bb20c2d8 (patch)
tree98d3074c29ff62c8b8dfda8f7661535e932364b3
parentdbba6b5e1a608a57b4f12b133a5989f1ba5fc262 (diff)
downloadpoezio-98850ff87700097c87364ca5b331e820bb20c2d8.tar.gz
poezio-98850ff87700097c87364ca5b331e820bb20c2d8.tar.bz2
poezio-98850ff87700097c87364ca5b331e820bb20c2d8.tar.xz
poezio-98850ff87700097c87364ca5b331e820bb20c2d8.zip
Fix #2132 (/disconnect)
-rw-r--r--src/tabs.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 7fb6aaf6..0b2cfc2e 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -2110,6 +2110,9 @@ class RosterInfoTab(Tab):
self.register_command('reconnect', self.command_reconnect,
desc=_('Disconnect from the remote server if you are currently connected and then connect to it again.'),
shortdesc=_('Disconnect and reconnect to the server.'))
+ self.register_command('disconnect', self.command_disconnect,
+ desc=_('Disconnect from the remote server.'),
+ shortdesc=_('Disconnect from the server.'))
self.register_command('export', self.command_export,
usage=_('[/path/to/file]'),
desc=_('Export your contacts into /path/to/file if specified, or $HOME/poezio_contacts if not.'),
@@ -2251,6 +2254,12 @@ class RosterInfoTab(Tab):
"""
self.core.disconnect(reconnect=True)
+ def command_disconnect(self, args=None):
+ """
+ /disconnect
+ """
+ self.core.disconnect()
+
def command_activity(self, arg=None):
"""
/activity [jid]