From dd8037faa517dd26c22ccad9b88e3a6d5cebee9b Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 11 Oct 2017 23:47:35 +0200 Subject: Rename the self-command function to self_ and keep language semantics Sorry Link Mauve --- poezio/core/commands.py | 10 +++++----- poezio/core/core.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'poezio') diff --git a/poezio/core/commands.py b/poezio/core/commands.py index 31e6d8a1..c256ccab 100644 --- a/poezio/core/commands.py +++ b/poezio/core/commands.py @@ -978,14 +978,14 @@ class CommandCore: callback=cb) @command_args_parser.ignored - def self(self_): + def self_(self): """ /self """ - status = self_.core.get_status() + status = self.core.get_status() show, message = status.show, status.message - nick = self_.core.own_nick - jid = self_.core.xmpp.boundjid.full + nick = self.core.own_nick + jid = self.core.xmpp.boundjid.full info = ('Your JID is %s\nYour current status is "%s" (%s)' '\nYour default nickname is %s\nYou are running poezio %s' % ( jid, @@ -993,7 +993,7 @@ class CommandCore: show if show else 'available', nick, config_opts.version)) - self_.core.information(info, 'Info') + self.core.information(info, 'Info') @command_args_parser.ignored diff --git a/poezio/core/core.py b/poezio/core/core.py index 7d4e46e5..ad2fe8ab 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -1922,7 +1922,7 @@ class Core(object): usage='', shortdesc='Execute the action defined for .', completion=self.completion.runkey) - self.register_command('self', self.command.self, + self.register_command('self', self.command.self_, shortdesc='Remind you of who you are.') self.register_command('last_activity', self.command.last_activity, usage='', -- cgit v1.2.3