def allowable_command_name(command):
    return not commandcore.builtinCommands().has_key(command) and len(command) > 0
def has_args(command, channel):
    if commandcore.builtinCommands().has_key(command):
        return commandcore.builtinCommands()[command].args > 0
    elif channel.commands.has_key(command):
        return channel.commands[command].args > 0
    return False
def get_command(command, channel):
    if commandcore.builtinCommands().has_key(command):
        return commandcore.builtinCommands()[command]
    if channel.commands.has_key(command):
        return channel.commands[command]
    return None
def is_valid_command(command, channel):
    return commandcore.builtinCommands().has_key(command) or channel.commands.has_key(command)