3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +01:00

utils: pass featured argument to ServiceBot in add_cmd()

This commit is contained in:
James Lu 2016-06-30 17:57:40 -07:00
parent 1637193a53
commit e730909a46

View File

@ -62,9 +62,9 @@ class IncrementalUIDGenerator():
self.increment() self.increment()
return uid 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.""" """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 return func
def add_hook(func, command): def add_hook(func, command):