plugins: also update the admin plugin to reflect coroutine changes

This commit is contained in:
mathieui 2021-02-16 20:16:31 +01:00
parent cfb630edbc
commit 5a9e143c53

View file

@ -122,10 +122,14 @@ class Plugin(BasePlugin):
completion=self.complete_nick)
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):
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):
tab = self.api.current_tab()