Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)
Esempio n. 5
0
 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)
Esempio n. 6
0
 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)