From 5a9e143c53ce6958a09737c8ed8d57924fc9206f Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 16 Feb 2021 20:16:31 +0100 Subject: plugins: also update the admin plugin to reflect coroutine changes --- plugins/admin.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/admin.py b/plugins/admin.py index 7bbc01d6..c2901844 100644 --- a/plugins/admin.py +++ b/plugins/admin.py @@ -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() -- cgit v1.2.3