Use privmsg_many instead of iterating over channels with privmsg

This commit is contained in:
Ondrej Mikle 2017-10-27 00:03:54 +02:00
parent 055706e85c
commit 5730ad184c

View file

@ -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: