We don't want to return an error status in immediate mode.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 2 Dec 2013 15:42:38 +0000 (10:42 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 2 Dec 2013 15:42:38 +0000 (10:42 -0500)
irkerd

diff --git a/irkerd b/irkerd
index a107c5eddb6843aa25cccd4aa5be171cf6c86d8b..705b20c04d45d8958b0c86ef7f81df8cc2422d7b 100755 (executable)
--- a/irkerd
+++ b/irkerd
@@ -874,7 +874,7 @@ if __name__ == '__main__':
     irker.irc.debug(1, "irkerd version %s" % version)
     if immediate:
         def bailout():
-            raise SystemExit, 1
+            raise SystemExit, 0
         irker.irc.add_event_handler("quit", lambda _c, _e: bailout())
         irker.handle('{"to":"%s","privmsg":"%s"}' % (immediate, arguments[0]), quit_after=True)
         irker.irc.spin()