summaryrefslogtreecommitdiff
path: root/poezio/core/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'poezio/core/commands.py')
-rw-r--r--poezio/core/commands.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index c9605987..4dbb5611 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -509,6 +509,16 @@ class CommandCore:
else:
self.core.information('No bookmark to remove', 'Info')
+ @command_args_parser.ignored
+ def command_reconnect(self):
+ """
+ /reconnect
+ """
+ if self.core.xmpp.is_connected():
+ self.core.disconnect(reconnect=True)
+ else:
+ self.core.xmpp.connect()
+
@command_args_parser.quoted(0, 3)
def set(self, args):
"""
@@ -687,7 +697,7 @@ class CommandCore:
else:
msg = 'The last activity of %s was %s ago%s' % (
from_, common.parse_secs_to_str(seconds),
- (' and his/her last status was %s' % status)
+ (' and their last status was %s' % status)
if status else '')
self.core.information(msg, 'Info')