add oEmbed too title function

This commit is contained in:
lodriguez 2025-02-01 16:26:17 +01:00
parent 427845a358
commit c1ceb77123

View File

@ -489,6 +489,9 @@ class Web(callbacks.PluginRegexp):
if not self._checkURLWhitelist(url):
irc.error("This url is not on the whitelist.")
return
title = self.getOEmbedTitle(url)
target = url
if not title:
r = self.getTitle(irc, url, True, msg)
if not r:
return