denoodle the core
This commit is contained in:
parent
f788af8d55
commit
8881f694fa
2 changed files with 2 additions and 2 deletions
|
@ -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+)(.*)'
|
||||
|
|
|
@ -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']
|
||||
|
||||
|
|
Reference in a new issue