summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]