event.eat() in command.regex for !title

This commit is contained in:
jesopo 2019-05-21 09:54:51 +01:00
parent 2fcaf68f0e
commit 9a5ba753d0

View file

@ -52,6 +52,7 @@ class Module(ModuleManager.BaseModule):
:pattern-url: 1
"""
if event["target"].get_setting("auto-title", False):
event.eat()
url = event["match"].group(0)
title = self._get_title(event["target"], event["match"].group(0))