Skip to content

Commit

Permalink
Merge pull request #1265 from GLolol/patch-1
Browse files Browse the repository at this point in the history
Factoids: add missing Raise in requireVoice checks
  • Loading branch information
progval committed Sep 26, 2016
2 parents d709979 + cd853f3 commit fe52ba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/Factoids/plugin.py
Expand Up @@ -278,7 +278,7 @@ def _getKeyAndFactId(self, channel, key, factoid):
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
Expand Down Expand Up @@ -657,7 +657,7 @@ def forget(self, irc, msg, args, channel, words):
"""
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():
Expand Down

0 comments on commit fe52ba8

Please sign in to comment.