Made "you need to be authenticated" message more helpful

This commit is contained in:
jesopo 2018-08-28 12:48:08 +01:00
parent 5aa73cd64b
commit 1b8c663c1a

View file

@ -97,7 +97,9 @@ class Module(object):
return "You do not have permission to do that"
elif authenticated:
if not event["user"].identified:
return "You need to be identified to use that command"
return ("You need to be identified to use that command "
"(/msg %s register | /msg %s identify)" % (
event["server"].nickname, event["server"].nickname))
def my_permissions(self, event):
permissions = event["user"].get_setting("permissions", [])