diff options
| author | 2019-06-06 17:31:11 +0100 | |
|---|---|---|
| committer | 2019-06-06 17:31:11 +0100 | |
| commit | 6f27879d1b48a1e7c89e183e7b0b44c8175a1755 (patch) | |
| tree | 0c318c8eb46ba523432bec3a47af28b756b75bba /modules/commands | |
| parent | Merge branch 'master' into feature/write-thread (diff) | |
| signature | ||
Send +draft/typing before processing command. WIP
Diffstat (limited to 'modules/commands')
| -rw-r--r-- | modules/commands/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
