mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
A little logging, etc.
This commit is contained in:
parent
069d48b269
commit
7850da79d5
@ -465,7 +465,10 @@ class Irc(IrcCommandDispatcher):
|
|||||||
self.driver = None # The driver should set this later.
|
self.driver = None # The driver should set this later.
|
||||||
if self.password:
|
if self.password:
|
||||||
self.queue.enqueue(ircmsgs.password(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))
|
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))
|
self.queue.enqueue(ircmsgs.user(self.ident, self.user))
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
@ -486,6 +489,9 @@ class Irc(IrcCommandDispatcher):
|
|||||||
for callback in self.callbacks:
|
for callback in self.callbacks:
|
||||||
callback.reset()
|
callback.reset()
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return '<irclib.Irc object for %s>' % self.server
|
||||||
|
|
||||||
def addCallback(self, callback):
|
def addCallback(self, callback):
|
||||||
"""Adds a callback to the callbacks list."""
|
"""Adds a callback to the callbacks list."""
|
||||||
self.callbacks.append(callback)
|
self.callbacks.append(callback)
|
||||||
|
Loading…
Reference in New Issue
Block a user