'Lists the commands available to the user.'

def cmd_commands(self, conn):

    if (self.password and (not conn.authenticated)):
        for cmd in SAFE_COMMANDS:
            (yield (u'command:    ' + cmd))
    else:
        for func in dir(self):
            if func.startswith('cmd_'):
                (yield (u'command:    ' + func[4:]))
