mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
QuoteGrabs: Prevent quote grabs from queries.
Signed-off-by: James McCoy <vega.james@gmail.com>
This commit is contained in:
parent
20509a19c7
commit
5e8896fe6d
@ -253,7 +253,7 @@ class QuoteGrabs(callbacks.Plugin):
|
||||
# opposed to channel which is used to determine which db to store the
|
||||
# quote in
|
||||
chan = msg.args[0]
|
||||
if chan is None:
|
||||
if chan is None or not irc.isChannel(chan):
|
||||
raise callbacks.ArgumentError
|
||||
if ircutils.nickEqual(nick, msg.nick):
|
||||
irc.error('You can\'t quote grab yourself.', Raise=True)
|
||||
|
Loading…
Reference in New Issue
Block a user