mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 11:42:51 +01:00
utils: pass featured argument to ServiceBot in add_cmd()
This commit is contained in:
parent
1637193a53
commit
e730909a46
4
utils.py
4
utils.py
@ -62,9 +62,9 @@ class IncrementalUIDGenerator():
|
||||
self.increment()
|
||||
return uid
|
||||
|
||||
def add_cmd(func, name=None):
|
||||
def add_cmd(func, name=None, **kwargs):
|
||||
"""Binds an IRC command function to the given command name."""
|
||||
world.services['pylink'].add_cmd(func, name=name)
|
||||
world.services['pylink'].add_cmd(func, name=name, **kwargs)
|
||||
return func
|
||||
|
||||
def add_hook(func, command):
|
||||
|
Loading…
Reference in New Issue
Block a user