Iterate through bot.servers.values(), not .keys() (admin.py)

This commit is contained in:
jesopo 2019-02-10 23:54:31 +00:00
parent fadd21c6d9
commit d087143a5d

View file

@ -96,7 +96,7 @@ class Module(ModuleManager.BaseModule):
:permission: shutdown :permission: shutdown
""" """
reason = event["args"] or "" reason = event["args"] or ""
for server in self.bot.servers: for server in self.bot.servers.values():
line = server.send_quit(reason) line = server.send_quit(reason)
line.on_send(self._shutdown_hook(server)) line.on_send(self._shutdown_hook(server))
def _shutdown_hook(self, server): def _shutdown_hook(self, server):