'alias' -> 'str(server)' as alias
does not exist in the current context
This commit is contained in:
parent
a3a61d2e86
commit
17ee70cdd6
1 changed files with 2 additions and 1 deletions
|
@ -81,10 +81,11 @@ class Module(ModuleManager.BaseModule):
|
||||||
id = self.bot.database.servers.get_by_alias(alias)
|
id = self.bot.database.servers.get_by_alias(alias)
|
||||||
if id == None:
|
if id == None:
|
||||||
raise utils.EventError("Unknown server alias")
|
raise utils.EventError("Unknown server alias")
|
||||||
|
|
||||||
server = self.bot.get_server_by_id(id)
|
server = self.bot.get_server_by_id(id)
|
||||||
server.disconnect()
|
server.disconnect()
|
||||||
self.bot.disconnect(server)
|
self.bot.disconnect(server)
|
||||||
event["stdout"].write("Disconnected from %s" % alias)
|
event["stdout"].write("Disconnected from %s" % str(server))
|
||||||
|
|
||||||
@utils.hook("received.command.shutdown")
|
@utils.hook("received.command.shutdown")
|
||||||
def shutdown(self, event):
|
def shutdown(self, event):
|
||||||
|
|
Loading…
Reference in a new issue