From dc102f258d75493b11735fdd69e25f92be186c1f Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 24 Apr 2019 12:07:30 +0100 Subject: 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 --- modules/github/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/github/__init__.py') diff --git a/modules/github/__init__.py b/modules/github/__init__.py index a143ff7c..ff85b8f8 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -340,7 +340,7 @@ class Module(ModuleManager.BaseModule): if found_hook: repo_hooked = True - server = self.bot.get_server(server_id) + server = self.bot.get_server_by_id(server_id) if server and channel_name in server.channels: if (branch and found_hook["branches"] and -- cgit v1.3.1-10-gc9f91