diff --git a/src/irclib.py b/src/irclib.py index e0442049b..d5c332bc1 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -465,7 +465,10 @@ class Irc(IrcCommandDispatcher): self.driver = None # The driver should set this later. if self.password: self.queue.enqueue(ircmsgs.password(self.password)) + log.info('Sending NICK command, nick is %s.', self.nick) self.queue.enqueue(ircmsgs.nick(self.nick)) + log.info('Sending USER command, ident is %s, user is %s.', + self.nick, self.user) self.queue.enqueue(ircmsgs.user(self.ident, self.user)) def reset(self): @@ -486,6 +489,9 @@ class Irc(IrcCommandDispatcher): for callback in self.callbacks: callback.reset() + def __repr__(self): + return '' % self.server + def addCallback(self, callback): """Adds a callback to the callbacks list.""" self.callbacks.append(callback)