denoodle the core

This commit is contained in:
Luke Rogers 2013-09-05 16:17:39 +12:00
parent f788af8d55
commit 8881f694fa
2 changed files with 2 additions and 2 deletions

View file

@ -156,7 +156,7 @@ def main(conn, out):
if inp.chan == inp.nick: # private message, no command prefix
prefix = '^(?:[{}]?|'.format(command_prefix)
else:
prefix = '^(?:[%s]|'.format(command_prefix)
prefix = '^(?:[{}]|'.format(command_prefix)
command_re = prefix + inp.conn.nick
command_re += r'[,;:]+\s+)(\w+)(?:$|\s+)(.*)'

View file

@ -18,7 +18,7 @@ def make_signature(f):
def format_plug(plug, kind='', lpad=0):
out = ' ' * lpad + '{}:{}:{}'.format(make_signature(plug[0]))
out = ' ' * lpad + '{}:{}:{}'.format(*make_signature(plug[0]))
if kind == 'command':
out += ' ' * (50 - len(out)) + plug[1]['name']