mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-26 04:51:06 -05:00
User: Admins can now see capabilities of other users. Closes GH-106.
This commit is contained in:
parent
9cd2c31dd4
commit
2e0f33f655
@ -395,7 +395,7 @@ class User(callbacks.Plugin):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
irc.errorNotRegistered()
|
irc.errorNotRegistered()
|
||||||
else:
|
else:
|
||||||
if u == user or u._checkCapability('owner'):
|
if u == user or u._checkCapability('admin'):
|
||||||
irc.reply('[%s]' % '; '.join(user.capabilities), private=True)
|
irc.reply('[%s]' % '; '.join(user.capabilities), private=True)
|
||||||
else:
|
else:
|
||||||
irc.error(conf.supybot.replies.incorrectAuthentication(),
|
irc.error(conf.supybot.replies.incorrectAuthentication(),
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
"""stick the various versioning attributes in here, so we only have to change
|
"""stick the various versioning attributes in here, so we only have to change
|
||||||
them once."""
|
them once."""
|
||||||
version = '0.83.4.1+limnoria (2011-08-07T11:30:51+0200)'
|
version = '0.83.4.1+limnoria (2011-08-07T11:59:19+0200)'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user