def _on_join(self, c, e): """[Internal]""" ch = e.target() nick = nm_to_n(e.source()) self.log.info(nick + ' is joining channel ' + ch) if nick == c.get_nickname(): self.channels[ch] = Channel() self.channels[ch].add_user(nick)
def on_welcome(self, c, e): for ch in self.channelsDict.keys(): channel = Channel() channel.logging = self.channelsDict[ch]["logging"] channel.folder = self.channelsDict[ch]["folder"] channel.ai = self.channelsDict[ch]["ai"] channel.old = self.channelsDict[ch]["old"] channel.quoting = self.channelsDict[ch]["quoting"] channel.seen = self.channelsDict[ch]["seen"] self.channels[ch] = channel c.join(ch) c.privmsg("nickserv", "identify " + PASSWORD)
def on_join(self, c, e): nick = nm_to_n(e.source()) channel = e.target() if (nick == c.get_nickname()): if (not channel in self.channels): newChannel = Channel() newChannel.logging = self.channelsDict[channel]["logging"] newChannel.folder = self.channelsDict[channel]["folder"] newChannel.ai = self.channelsDict[channel]["ai"] newChannel.quoting = self.channelsDict[channel]["quoting"] self.channels[channel] = newChannel self.channels[channel].add_user(nick) time = strftime("%a %b %d %H:%M:%S %Y", localtime()) self.logWithoutTime(e.target(), "\nSession Start: " + time) self.logWithoutTime(e.target(), "Session Ident: " + channel) self.log(e.target(), "* Now talking in " + channel) return self.channels[channel].add_user(nick) userHost = nm_to_uh(e.source()) self.log(channel, "* " + nick + " (" + userHost + ") has joined " + channel) self.seen(nick, channel, True)
def on_join(self, c, e): nick = nm_to_n(e.source()) channel = e.target() if (nick == c.get_nickname()): if (not channel in self.channels): newChannel = Channel() newChannel.logging = self.channelsDict[channel]["logging"] newChannel.folder = self.channelsDict[channel]["folder"] newChannel.ai = self.channelsDict[channel]["ai"] newChannel.old = self.channelsDict[channel]["old"] newChannel.quoting = self.channelsDict[channel]["quoting"] self.channels[channel] = newChannel self.channels[channel].add_user(nick) self.logger.logSelfJoin(e, channel) return self.channels[channel].add_user(nick) self.logger.logJoin(e) self.doSeen(nick, channel, True)