mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Factoids: Use supybot.plugins.Factoids.requireVoice for @forget too.
This commit is contained in:
parent
9e1cf727e3
commit
8bfea88e3f
@ -649,6 +649,9 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler):
|
||||
<channel> is only necessary if
|
||||
the message isn't sent in the channel itself.
|
||||
"""
|
||||
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.'))
|
||||
number = None
|
||||
if len(words) > 1:
|
||||
if words[-1].isdigit():
|
||||
|
Loading…
Reference in New Issue
Block a user