diff options
| author | 2018-08-28 12:23:57 +0100 | |
|---|---|---|
| committer | 2018-08-28 12:23:57 +0100 | |
| commit | e5a5fa5c4b40918247be8486d27a1676b6d2b044 (patch) | |
| tree | 70e61a968a20134b01ea4e4f5611e4e254df06ae /IRCChannel.py | |
| parent | Prevent users sending coins to themselves (diff) | |
| signature | ||
modules/logging.py -> IRCLogging.py; IRCLog.py -> IRCBuffer.py; change logging
to be an object on the server object instead of an event call
Diffstat (limited to 'IRCChannel.py')
| -rw-r--r-- | IRCChannel.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/IRCChannel.py b/IRCChannel.py index a572be10..2cc46ca4 100644 --- a/IRCChannel.py +++ b/IRCChannel.py @@ -1,5 +1,5 @@ import uuid -import IRCLog +import IRCBuffer class Channel(object): def __init__(self, name, id, server, bot): @@ -15,7 +15,10 @@ class Channel(object): self.users = set([]) self.modes = {} self.created_timestamp = None - self.log = IRCLog.Log(bot) + self.buffer = IRCBuffer.Buffer(bot) + + def __repr__(self): + return "IRCChannel.Channel(%s|%s)" % (self.server.name, self.name) def set_topic(self, topic): self.topic = topic |
