msg.args[0] -> channel

This commit is contained in:
Gordon Shumway 2020-02-03 21:40:45 -05:00 committed by GitHub
parent 02cce68aa0
commit e26915e60b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -143,11 +143,11 @@ class ShrinkUrl(callbacks.PluginRegexp):
return return
if self.registryValue('shrinkSnarfer', channel, network): if self.registryValue('shrinkSnarfer', channel, network):
url = match.group(0) url = match.group(0)
if self.registryValue("fetchSpiffyTitle", msg.args[0]): if self.registryValue("fetchSpiffyTitle", channel):
spiffy = irc.getCallback("SpiffyTitles") spiffy = irc.getCallback("SpiffyTitles")
if spiffy: if spiffy:
try: try:
result = SpiffyTitles.get_title_by_url(url, msg.args[0]) result = SpiffyTitles.get_title_by_url(url, channel)
if result: if result:
irc.reply(result, prefixNick=False) irc.reply(result, prefixNick=False)
except: except: