From d087143a5d4a693a43c7c0a614a3d3add066e779 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 10 Feb 2019 23:54:31 +0000 Subject: [PATCH] Iterate through bot.servers.values(), not .keys() (admin.py) --- modules/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/admin.py b/modules/admin.py index fe014974..c07229f5 100644 --- a/modules/admin.py +++ b/modules/admin.py @@ -96,7 +96,7 @@ class Module(ModuleManager.BaseModule): :permission: shutdown """ reason = event["args"] or "" - for server in self.bot.servers: + for server in self.bot.servers.values(): line = server.send_quit(reason) line.on_send(self._shutdown_hook(server)) def _shutdown_hook(self, server):