Made @script command without giving an object warning about global scripts.

This commit is contained in:
Griatch 2015-03-14 19:58:43 +01:00
parent e449c3391f
commit 5a811a2d89

View file

@ -2211,6 +2211,10 @@ class CmdScript(MuxCommand):
caller.msg(string)
return
if not self.lhs:
caller.msg("To create a global script you need {w@scripts/add <typeclass>{n.")
return
obj = caller.search(self.lhs)
if not obj:
return