Some bug fixes in the IMC system.

This commit is contained in:
Griatch 2011-04-19 21:40:53 +00:00
parent b856cb8faf
commit c70d59045a
3 changed files with 22 additions and 18 deletions

View file

@ -990,11 +990,8 @@ class CmdIMC2Chan(MuxCommand):
mudname = settings.SERVERNAME
if 'disconnect' in self.switches or 'remove' in self.switches or 'delete' in self.switches:
chanmatch = find_channel(self.caller, channel, silent=True)
if chanmatch:
channel = chanmatch.key
ok = imc2.delete_connection(channel, imc2_network, imc2_port, mudname)
ok = imc2.delete_connection(imc2_network, imc2_port, mudname)
if not ok:
self.caller.msg("IMC2 connection could not be removed, does it exist?")
else: