You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from oyoyo.parse import parse_nick |
|
|
|
def generate(fdict): |
|
def cmd(s, raw_nick=False): |
|
def dec(f): |
|
def innerf(*args): |
|
largs = list(args) |
|
largs[1] = parse_nick(largs[1])[0] |
|
return f(*largs) |
|
if raw_nick: fdict[s] = f |
|
else: fdict[s] = innerf |
|
return f |
|
return dec |
|
return cmd |