server
should be IRCServer, not IRCChannels
This commit is contained in:
parent
0b87a4e5c9
commit
cabc5942b4
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue