Commit 5a9e143c authored by mathieui's avatar mathieui

plugins: also update the admin plugin to reflect coroutine changes

parent cfb630ed
Pipeline #3712 passed with stages
in 4 minutes and 49 seconds
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment