mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 12:12:54 +01:00
User: Sort output of @capabilities
It's more readable than a random order.
This commit is contained in:
parent
a6aa5530dd
commit
8c17505221
@ -448,7 +448,8 @@ class User(callbacks.Plugin):
|
|||||||
irc.errorNotRegistered()
|
irc.errorNotRegistered()
|
||||||
else:
|
else:
|
||||||
if u == user or u._checkCapability('admin'):
|
if u == user or u._checkCapability('admin'):
|
||||||
irc.reply('[%s]' % '; '.join(user.capabilities), private=True)
|
irc.reply('[%s]' % '; '.join(sorted(user.capabilities)),
|
||||||
|
private=True)
|
||||||
else:
|
else:
|
||||||
irc.error(conf.supybot.replies.incorrectAuthentication(),
|
irc.error(conf.supybot.replies.incorrectAuthentication(),
|
||||||
Raise=True)
|
Raise=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user