diff -r af912f53649c -r 24f0b13e87d3 cobalt.py --- a/cobalt.py Sat Nov 29 05:56:32 2014 +0200 +++ b/cobalt.py Fri Nov 28 23:24:06 2014 -0500 @@ -62,11 +62,10 @@ else: client.quit_irc() - quit() - #if g_BotActive: - # restart_self() - #else: - # quit() + if g_BotActive: + restart_self() + else: + quit() def restart_self(): os.execl (sys.executable, sys.executable, * sys.argv) @@ -100,7 +99,7 @@ for aconn in autoconnects: for conndata in Config.get_nodelist ('connections'): if conndata.get_value ('name') == aconn: - #Irc.irc_client (conndata, 0) + Irc.irc_client (conndata, 0) break else: raise ValueError ("unknown autoconnect entry %s" % (aconn))