Call Database.channels.rename in IRCServer.Server.rename_channel
This commit is contained in:
parent
055390e220
commit
0676b7b0db
1 changed files with 1 additions and 0 deletions
|
@ -212,6 +212,7 @@ class Server(IRCObject.Object):
|
||||||
channel = self.channels.pop(old_name.lower())
|
channel = self.channels.pop(old_name.lower())
|
||||||
channel.name = new_name.lower()
|
channel.name = new_name.lower()
|
||||||
self.channels[channel.name] = channel
|
self.channels[channel.name] = channel
|
||||||
|
self.bot.database.channels.rename(channel.id, new_name)
|
||||||
|
|
||||||
def parse_data(self, line: str):
|
def parse_data(self, line: str):
|
||||||
if not line:
|
if not line:
|
||||||
|
|
Loading…
Reference in a new issue