alias doesnt exist either

This commit is contained in:
jesopo 2019-10-03 05:19:16 +01:00
parent 54e4cd4e74
commit ec628f4f70

View file

@ -78,7 +78,8 @@ class Module(ModuleManager.BaseModule):
:usage: <server id>
:permission: connect
"""
server = self._server_from_alias(event["args"])
alias = event["args_split"][0]
server = self._server_from_alias(alias)
if server:
raise utils.EventError("Already connected to %s" % str(
existing_server))