Fixes a few more command errors in commands without args. Create from the login screen now works without errors again.

This commit is contained in:
Greg Taylor 2009-01-15 03:48:42 +00:00
parent 59e5f60e34
commit 51a648ddab
2 changed files with 7 additions and 5 deletions

View file

@ -20,11 +20,12 @@ def cmd_addcom(command):
"""
session = command.session
pobject = session.get_pobject()
eq_args = command.command_argument.split('=', 1)
if not command.command_argument:
session.msg("You need to specify a channel alias and name.")
return
eq_args = command.command_argument.split('=', 1)
chan_alias = eq_args[0]
chan_name = eq_args[1]
@ -62,7 +63,7 @@ def cmd_delcom(command):
session = command.session
pobject = session.get_pobject()
if len(command.command_argument) == 0:
if not command.command_argument:
session.msg("You must specify a channel alias.")
return