User: Sort output of @capabilities

It's more readable than a random order.
This commit is contained in:
Valentin Lorentz 2022-10-13 21:46:50 +02:00
parent a6aa5530dd
commit 8c17505221

View File

@ -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)