plugins: also update the admin plugin to reflect coroutine changes
This commit is contained in:
parent
cfb630edbc
commit
5a9e143c53
1 changed files with 6 additions and 2 deletions
|
@ -122,10 +122,14 @@ class Plugin(BasePlugin):
|
||||||
completion=self.complete_nick)
|
completion=self.complete_nick)
|
||||||
|
|
||||||
def role(self, role):
|
def role(self, role):
|
||||||
return lambda args: self.api.current_tab().command_role(args + ' ' + role)
|
async def inner(args):
|
||||||
|
await self.api.current_tab().command_role(args + ' ' + role)
|
||||||
|
return inner
|
||||||
|
|
||||||
def affiliation(self, affiliation):
|
def affiliation(self, affiliation):
|
||||||
return lambda args: self.api.current_tab().command_affiliation(args + ' ' + affiliation)
|
async def inner(args):
|
||||||
|
await self.api.current_tab().command_affiliation(args + ' ' + affiliation)
|
||||||
|
return inner
|
||||||
|
|
||||||
def complete_nick(self, the_input):
|
def complete_nick(self, the_input):
|
||||||
tab = self.api.current_tab()
|
tab = self.api.current_tab()
|
||||||
|
|
Loading…
Reference in a new issue