Add error handling message when missing argument

master^2
Kevin Zheng 2024-03-29 11:33:31 -07:00
parent da3b0be0b6
commit 5cd2e5fd1c
1 changed files with 5 additions and 2 deletions

View File

@ -51,6 +51,9 @@ if text:
activator.Write('This guild is currently under probation.\nPlease see a DM for more information')
elif (CheckClearance(Params,activator)):
#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
mymap.TriggerConnected(int(Params[2]),1,activator)
else: