Call Database.channels.rename in IRCServer.Server.rename_channel

This commit is contained in:
jesopo 2018-11-05 16:47:47 +00:00
parent 055390e220
commit 0676b7b0db

View file

@ -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: