Iterate through bot.servers.values(), not .keys() (admin.py)
This commit is contained in:
parent
fadd21c6d9
commit
d087143a5d
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue