summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-02-16 20:16:31 +0100
committermathieui <mathieui@mathieui.net>2021-02-17 19:10:22 +0100
commit5a9e143c53ce6958a09737c8ed8d57924fc9206f (patch)
treeefee3d50025d6b0313cefef2d71fc0ac920bdb28
parentcfb630edbc677bcd6a6008e7e18217d29ee9de53 (diff)
downloadpoezio-5a9e143c53ce6958a09737c8ed8d57924fc9206f.tar.gz
poezio-5a9e143c53ce6958a09737c8ed8d57924fc9206f.tar.bz2
poezio-5a9e143c53ce6958a09737c8ed8d57924fc9206f.tar.xz
poezio-5a9e143c53ce6958a09737c8ed8d57924fc9206f.zip
plugins: also update the admin plugin to reflect coroutine changes
-rw-r--r--plugins/admin.py8
1 files changed, 6 insertions, 2 deletions
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()