Working on cleaning some strange behavior when trying to submitting faulty typeclasses to script system. Also fixing bugs here and there.

This commit is contained in:
Griatch 2011-07-03 21:01:06 +00:00
parent dae375d1c4
commit 6cb2b8b745
12 changed files with 301 additions and 141 deletions

View file

@ -1861,7 +1861,7 @@ class CmdScript(MuxCommand):
# adding a new script, and starting it
ok = obj.scripts.add(self.rhs, autostart=True)
if not ok:
string += "\nScript %s could not be added." % self.rhs
string += "\nScript %s could not be added and/or started." % self.rhs
else:
string = "Script successfully added and started."

View file

@ -165,7 +165,7 @@ class CmdScripts(MuxCommand):
if not hasattr(script, 'repeats') or not script.repeats:
table[5].append("--")
else:
table[5].append("%ss" % script.repeats)
table[5].append("%s" % script.repeats)
if script.persistent:
table[6].append("*")
else: