Send +draft/typing before processing command. WIP

This commit is contained in:
jesopo 2019-06-06 17:31:11 +01:00
parent 35b97f836a
commit 6f27879d1b

View file

@ -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