To prevent funkage, added some checks to make sure IMC2 is enabled before messing with IMC stuff on @cemit.

This commit is contained in:
Greg Taylor 2009-04-17 14:26:01 +00:00
parent 4121b54e4c
commit 829b91dcce

View file

@ -259,6 +259,7 @@ def cmd_cemit(command):
source_object.emit_to("Sent - %s" % (name_matches[0],)) source_object.emit_to("Sent - %s" % (name_matches[0],))
src.comsys.send_cmessage(cname_parsed, final_cmessage) src.comsys.send_cmessage(cname_parsed, final_cmessage)
if settings.IMC2_ENABLED:
# Look for IMC2 channel maps. If one is found, send an ice-msg-b # Look for IMC2 channel maps. If one is found, send an ice-msg-b
# packet to the network. # packet to the network.
try: try: