Updating the irc2chan command

This commit is contained in:
Griatch 2014-02-26 23:34:44 +01:00
parent ab6dcc605d
commit 0d071ec75f
2 changed files with 10 additions and 7 deletions

View file

@ -40,7 +40,8 @@ class IRCBot(irc.IRCClient, Session):
self.uid = self.factory.uid
self.logged_in = True
self.factory.sessionhandler.connect(self)
logger.log_infomsg("IRC bot connected")
logger.log_infomsg("IRC bot '%s' connected to %s at %s:%s." % (self.nickname, self.channel,
self.network, self.port))
def privmsg(self, user, channel, msg):
"A message was sent to channel"