Added handling of mask command with spurios letters at end.

This commit is contained in:
Griatch 2015-09-26 22:27:27 +02:00
parent 350ef90a82
commit 993f4cbb9d

View file

@ -961,7 +961,7 @@ class CmdMask(RPCommand):
if caller.db.unmasked_sdesc:
caller.msg("You are already wearing a mask.")
return
sdesc = self.args.strip()
sdesc = _RE_CHAREND.sub("", self.args)
if len(sdesc) > 60:
caller.msg("Your masked sdesc is too long.")
return