From 5730ad184c077ea940150610f82aab90fde0143d Mon Sep 17 00:00:00 2001 From: Ondrej Mikle Date: Fri, 27 Oct 2017 00:03:54 +0200 Subject: [PATCH] Use privmsg_many instead of iterating over channels with privmsg --- brmdoor_nfc_daemon.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/brmdoor_nfc_daemon.py b/brmdoor_nfc_daemon.py index c5df14f..3083227 100755 --- a/brmdoor_nfc_daemon.py +++ b/brmdoor_nfc_daemon.py @@ -250,8 +250,7 @@ class IrcThread(threading.Thread): self.reactor.process_once(timeout=5) try: msg = self.msgQueue.get_nowait() - for channel in self.channels: - self.connection.privmsg(channel, msg) + self.connection.privmsg_many(self.channels, msg) except Queue.Empty: pass else: