summaryrefslogtreecommitdiff
path: root/poezio/core/commands.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-10-11 23:47:35 +0200
committermathieui <mathieui@mathieui.net>2017-10-11 23:47:57 +0200
commitdd8037faa517dd26c22ccad9b88e3a6d5cebee9b (patch)
treef94b566aa3c10f536a4fccdc923f51cb0a2f6eb8 /poezio/core/commands.py
parent2b0062a2792b2907c16b33d5d001ea6db1c28b87 (diff)
downloadpoezio-dd8037faa517dd26c22ccad9b88e3a6d5cebee9b.tar.gz
poezio-dd8037faa517dd26c22ccad9b88e3a6d5cebee9b.tar.bz2
poezio-dd8037faa517dd26c22ccad9b88e3a6d5cebee9b.tar.xz
poezio-dd8037faa517dd26c22ccad9b88e3a6d5cebee9b.zip
Rename the self-command function to self_ and keep language semantics
Sorry Link Mauve
Diffstat (limited to 'poezio/core/commands.py')
-rw-r--r--poezio/core/commands.py10
1 files changed, 5 insertions, 5 deletions
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