Fix a problem with @cemit permissions.

This commit is contained in:
Greg Taylor 2007-05-22 23:53:05 +00:00
parent 52c986dff7
commit 928a5a29d6
2 changed files with 9 additions and 3 deletions

View file

@ -231,11 +231,17 @@ def cmd_cemit(cdat):
return
if "noheader" in switches:
if not pobject.user_has_perm("objects.emit_commchannel"):
session.msg(defines_global.NOPERMS_MSG)
return
final_cmessage = cmessage
else:
if "sendername":
if "sendername" in switches:
final_cmessage = "[%s] %s: %s" % (cname_parsed, pobject.get_name(show_dbref=False), cmessage)
else:
if not pobject.user_has_perm("objects.emit_commchannel"):
session.msg(defines_global.NOPERMS_MSG)
return
final_cmessage = "[%s] %s" % (cname_parsed, cmessage)
if not "quiet" in switches: