From cd853f3e31679a526d8a7e40965c9e7f5bda2eb3 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 25 Sep 2016 17:11:14 -0700 Subject: [PATCH] Factoids: add missing Raise in requireVoice checks Reported by braimee on IRC. --- plugins/Factoids/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Factoids/plugin.py b/plugins/Factoids/plugin.py index 199e8a11d..18bded0ab 100644 --- a/plugins/Factoids/plugin.py +++ b/plugins/Factoids/plugin.py @@ -278,7 +278,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler): def learn(self, irc, msg, args, channel, key, factoid): if self.registryValue('requireVoice', channel) and \ not irc.state.channels[channel].isVoicePlus(msg.nick): - irc.error(_('You have to be at least voiced to teach factoids.')) + irc.error(_('You have to be at least voiced to teach factoids.'), Raise=True) # if neither key nor factoid exist, add them. # if key exists but factoid doesn't, add factoid, link it to existing key @@ -657,7 +657,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler): """ if self.registryValue('requireVoice', channel) and \ not irc.state.channels[channel].isVoicePlus(msg.nick): - irc.error(_('You have to be at least voiced to remove factoids.')) + irc.error(_('You have to be at least voiced to remove factoids.'), Raise=True) number = None if len(words) > 1: if words[-1].isdigit():