Remove debug code

Yes, I pushed debug code again. >_>
This commit is contained in:
nyuszika7h 2015-03-02 12:26:48 +01:00
parent f81fd879a2
commit 7651de67eb

View File

@ -482,8 +482,7 @@ def restart_program(cli, nick, chan, rest):
msg += " ({0})".format(rest)
try:
#cli.quit(msg.format(nick, rest.strip()))
cli.msg(chan, msg.format(nick, rest.strip()))
cli.quit(msg.format(nick, rest.strip()))
except Exception:
notify_error(cli, chan, errlog)
@ -492,11 +491,9 @@ def restart_program(cli, nick, chan, rest):
python = sys.executable
if mode:
#os.execl(python, python, sys.argv[0], "--{0}".format(mode))
cli.msg(chan, "{0}".format(((python, python, sys.argv[0], "--{0}".format(mode)))))
os.execl(python, python, sys.argv[0], "--{0}".format(mode))
else:
#os.execl(python, python, *sys.argv)
cli.msg(chan, "{0}".format(tuple([python, python] + sys.argv)))
os.execl(python, python, *sys.argv)