Add error handling message when missing argument
parent
da3b0be0b6
commit
5cd2e5fd1c
|
@ -51,6 +51,9 @@ if text:
|
||||||
activator.Write('This guild is currently under probation.\nPlease see a DM for more information')
|
activator.Write('This guild is currently under probation.\nPlease see a DM for more information')
|
||||||
elif (CheckClearance(Params,activator)):
|
elif (CheckClearance(Params,activator)):
|
||||||
#check their status
|
#check their status
|
||||||
|
if len(Params) < 3:
|
||||||
|
message = "I don't know which door I'm supposed to open for you. Contact a DM."
|
||||||
|
else:
|
||||||
message = 'Entry granted for %s' %activatorname
|
message = 'Entry granted for %s' %activatorname
|
||||||
mymap.TriggerConnected(int(Params[2]),1,activator)
|
mymap.TriggerConnected(int(Params[2]),1,activator)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue