Skip to content
Snippets Groups Projects
Commit f4dccf55 authored by Eric S. Raymond's avatar Eric S. Raymond
Browse files

Don't issue joins if we don't need to.

parent e7f6cc57
Branches
No related tags found
No related merge requests found
......@@ -117,7 +117,9 @@ class Session():
break
elif self.server.nick_accepted:
message = self.queue.get()
if self.channel not in self.server.channels_joined:
self.server.join("#" + self.channel)
self.server.channels_joined.append(self.channel)
self.server.privmsg("#" + self.channel, message)
self.last_xmit = time.time()
self.irker.debug(1, "XMIT_TTL bump (transmission) at %s" % time.asctime())
......@@ -172,6 +174,7 @@ class Irker:
self.servercount += 1
newserver = self.irc.server()
newserver.nick_trial = self.servercount
newserver.channels_joined = []
newserver.connect(servername,
port,
nickname=self.nickname(newserver.nick_trial),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment