Copypaste fail in src/IRCChannel.py, 'self.bot' -> 'self._bot'

This commit is contained in:
jesopo 2018-11-11 12:48:30 +00:00
parent e133401ed9
commit f6a997e3b9

View file

@ -170,8 +170,8 @@ class Channels(object):
return self.contains(name) return self.contains(name)
def _get_id(self, channel_name: str) -> int: def _get_id(self, channel_name: str) -> int:
self.bot.database.channels.add(self.id, channel_name) self._bot.database.channels.add(self.id, channel_name)
return self.bot.database.channels.get_id(self.id, channel_name) return self._bot.database.channels.get_id(self.id, channel_name)
def _name_lower(self, channel_name: str) -> str: def _name_lower(self, channel_name: str) -> str:
return utils.irc.lower(self._server.case_mapping, channel_name) return utils.irc.lower(self._server.case_mapping, channel_name)