Rename the self-command function to self_ and keep language semantics
Sorry Link Mauve
This commit is contained in:
parent
2b0062a279
commit
dd8037faa5
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -1922,7 +1922,7 @@ class Core(object):
|
|||
usage='<key>',
|
||||
shortdesc='Execute the action defined for <key>.',
|
||||
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='<jid>',
|
||||
|
|
Loading…
Reference in a new issue