server should be IRCServer, not IRCChannels

This commit is contained in:
jesopo 2020-01-22 12:28:05 +00:00
parent 0b87a4e5c9
commit cabc5942b4

View file

@ -42,7 +42,8 @@ class Channels(object):
lower = self._name_lower(name) lower = self._name_lower(name)
new_channel = IRCChannel.Channel(lower, id, self._server, self._bot) new_channel = IRCChannel.Channel(lower, id, self._server, self._bot)
self._channels[lower] = new_channel self._channels[lower] = new_channel
self._events.on("new.channel").call(channel=new_channel, server=self) self._events.on("new.channel").call(channel=new_channel,
server=self._server)
return new_channel return new_channel
def remove(self, channel: IRCChannel.Channel): def remove(self, channel: IRCChannel.Channel):