This should fix the comsys channels not behaving well.
This commit is contained in:
parent
5bf1461d75
commit
800e84a15e
2 changed files with 7 additions and 2 deletions
|
|
@ -212,6 +212,7 @@ def match_channel(command):
|
||||||
second_arg = "%s=%s" % (cname, command.command_argument)
|
second_arg = "%s=%s" % (cname, command.command_argument)
|
||||||
command.command_string = "@cemit"
|
command.command_string = "@cemit"
|
||||||
command.command_switches = ["sendername", "quiet"]
|
command.command_switches = ["sendername", "quiet"]
|
||||||
|
command.command_argument = second_arg
|
||||||
|
|
||||||
def command_table_lookup(command, command_table, eval_perms=True):
|
def command_table_lookup(command, command_table, eval_perms=True):
|
||||||
"""
|
"""
|
||||||
|
|
@ -251,7 +252,9 @@ def handle(command):
|
||||||
# Match against the 'idle' command.
|
# Match against the 'idle' command.
|
||||||
match_idle(command)
|
match_idle(command)
|
||||||
# See if this is an aliased command.
|
# See if this is an aliased command.
|
||||||
|
print "CMD", command.command_string, command.command_argument
|
||||||
match_alias(command)
|
match_alias(command)
|
||||||
|
print "CMD", command.command_string, command.command_argument
|
||||||
# Check if the user is using a channel command.
|
# Check if the user is using a channel command.
|
||||||
match_channel(command)
|
match_channel(command)
|
||||||
# See if the user is trying to traverse an exit.
|
# See if the user is trying to traverse an exit.
|
||||||
|
|
|
||||||
|
|
@ -197,12 +197,14 @@ def cmd_cemit(command):
|
||||||
return
|
return
|
||||||
|
|
||||||
eq_args = command.command_argument.split('=', 1)
|
eq_args = command.command_argument.split('=', 1)
|
||||||
cname = eq_args[0]
|
|
||||||
cmessage = eq_args[1]
|
|
||||||
|
|
||||||
if len(eq_args) != 2:
|
if len(eq_args) != 2:
|
||||||
session.msg("You must provide a channel name and a message to emit.")
|
session.msg("You must provide a channel name and a message to emit.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
cname = eq_args[0]
|
||||||
|
cmessage = eq_args[1]
|
||||||
|
|
||||||
if len(cname) == 0:
|
if len(cname) == 0:
|
||||||
session.msg("You must provide a channel name to emit to.")
|
session.msg("You must provide a channel name to emit to.")
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue