From ab8a1d8efb9d4b5e0fdc4e1db75997ae2b10a316 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 2 Dec 2013 10:45:18 -0500 Subject: [PATCH] Cleaner exit code. --- irkerd | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/irkerd b/irkerd index 705b20c..024a446 100755 --- a/irkerd +++ b/irkerd @@ -873,9 +873,7 @@ if __name__ == '__main__': irker = Irker(debuglevel=debuglvl) irker.irc.debug(1, "irkerd version %s" % version) if immediate: - def bailout(): - raise SystemExit, 0 - irker.irc.add_event_handler("quit", lambda _c, _e: bailout()) + irker.irc.add_event_handler("quit", lambda _c, _e: sys.exit(0)) irker.handle('{"to":"%s","privmsg":"%s"}' % (immediate, arguments[0]), quit_after=True) irker.irc.spin() else: -- 2.26.2