From 77178a8ce0acf1c9341a3522a9781853894b9b14 Mon Sep 17 00:00:00 2001 From: Nyo Date: Sat, 16 Jul 2016 23:23:14 +0200 Subject: [PATCH] .BANCHO. .FIX. Never kill IRC --- irc/ircserver.py | 13 +++++++------ version | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/irc/ircserver.py b/irc/ircserver.py index 1dda99b..a05d00d 100644 --- a/irc/ircserver.py +++ b/irc/ircserver.py @@ -414,6 +414,7 @@ class Client: def noticePrivmsgHandler(self, command, arguments): """NOTICE and PRIVMSG commands handler (same syntax)""" + meme() # Syntax check if len(arguments) == 0: self.replyCode(411, "No recipient given ({})".format(command)) @@ -592,8 +593,8 @@ class Server: lastAliveCheck = time.time() # Main server loop - try: - while True: + while True: + try: (iwtd, owtd, ewtd) = select.select( [serversocket] + [x.socket for x in self.clients.values()], [x.socket for x in self.clients.values() @@ -627,10 +628,10 @@ class Server: for client in list(self.clients.values()): client.checkAlive() lastAliveCheck = now - except: - log.error("[IRC] Unknown error!\n```\n{}\n{}```".format(sys.exc_info(), traceback.format_exc())) - if glob.sentry == True: - sentryClient.captureException() + except: + log.error("[IRC] Unknown error!\n```\n{}\n{}```".format(sys.exc_info(), traceback.format_exc())) + if glob.sentry == True: + sentryClient.captureException() def main(port=6667): glob.ircServer = Server(port) diff --git a/version b/version index 9f05f9f..ec70f75 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.6.5 +1.6.6