From 6f27879d1b48a1e7c89e183e7b0b44c8175a1755 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 6 Jun 2019 17:31:11 +0100 Subject: [PATCH] Send +draft/typing before processing command. WIP --- modules/commands/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/commands/__init__.py b/modules/commands/__init__.py index 4c5ce49e..86fc65a7 100644 --- a/modules/commands/__init__.py +++ b/modules/commands/__init__.py @@ -133,6 +133,10 @@ class Module(ModuleManager.BaseModule): if self._is_ignored(server, user, command): return False + server.send(utils.irc.protocol.tagmsg(target.name, + {"+draft/typing": "active"}), immediate=True) + self.bot.trigger() + module_name = self._get_prefix(hook) or "" if not module_name and hasattr(hook.function, "__self__"): module_name = hook.function.__self__._name