diff --git a/modules/admin.py b/modules/admin.py index 37d61384..765758ca 100644 --- a/modules/admin.py +++ b/modules/admin.py @@ -81,10 +81,11 @@ class Module(ModuleManager.BaseModule): id = self.bot.database.servers.get_by_alias(alias) if id == None: raise utils.EventError("Unknown server alias") + server = self.bot.get_server_by_id(id) server.disconnect() self.bot.disconnect(server) - event["stdout"].write("Disconnected from %s" % alias) + event["stdout"].write("Disconnected from %s" % str(server)) @utils.hook("received.command.shutdown") def shutdown(self, event):