diff options
| author | 2019-04-24 12:07:30 +0100 | |
|---|---|---|
| committer | 2019-04-24 12:07:30 +0100 | |
| commit | dc102f258d75493b11735fdd69e25f92be186c1f (patch) | |
| tree | 8f696eab637c5d741b8903774179570bec85deb6 /modules/channel_op.py | |
| parent | Add UNIQUE constraint for `alias` on `servers` table (diff) | |
| signature | ||
Add Database.servers.get_by_alias, move IRCBot.get_server to
IRCBot.get_server_by_id, add IRCBot.get_server_by_alias and change
!connect/!disconnect to take aliases instead of IDs
Diffstat (limited to 'modules/channel_op.py')
| -rw-r--r-- | modules/channel_op.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/channel_op.py b/modules/channel_op.py index 066cee4c..2f0a0620 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -21,7 +21,7 @@ class Module(ModuleManager.BaseModule): @utils.hook("timer.unban") def _timer_unban(self, event): - server = self.bot.get_server(event["server_id"]) + server = self.bot.get_server_by_id(event["server_id"]) if event["channel_name"] in server.channels: channel = server.channels.get(event["channel_name"]) channel.send_unban(event["hostmask"]) |
