From 8d239ba3826a651c2d7a58d90cca6cd2604837b5 Mon Sep 17 00:00:00 2001 From: Griatch Date: Fri, 28 Aug 2009 18:38:08 +0000 Subject: [PATCH] Fixed a bug causing IMC users to see an echo when talking. The IRC<->Evennia<->IRC system seems to work as advertised now. /Griatch --- src/comsys.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/comsys.py b/src/comsys.py index a19dddef9a..59fe59383e 100644 --- a/src/comsys.py +++ b/src/comsys.py @@ -328,13 +328,13 @@ def send_cexternal(cname, cmessage, from_external=None): and all mapped external channels will be notified. """ - if settings.IMC2_ENABLED and not from_external=="IMC": + if settings.IMC2_ENABLED and from_external != "IMC2": #map an IRC emit to the IMC network # Look for IMC2 channel maps. If one is found, send an ice-msg-b # packet to the network. #handle lack of user, IMC-way. - + try: from src.imc2.connection import IMC2_PROTOCOL_INSTANCE map = IMC2ChannelMapping.objects.get(channel__name=cname) @@ -347,7 +347,7 @@ def send_cexternal(cname, cmessage, from_external=None): # No map found, do nothing. pass - if settings.IRC_ENABLED and not from_external=="IRC": + if settings.IRC_ENABLED and from_external != "IRC": # Map an IMC emit to IRC channels # Look for IRC channel maps. If found, echo cmessage to the