From 5e8896fe6dc3d0d411a58450fe380ab5724ff4ad Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 17 Dec 2014 08:01:25 +0100 Subject: [PATCH] QuoteGrabs: Prevent quote grabs from queries. Signed-off-by: James McCoy --- plugins/QuoteGrabs/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/QuoteGrabs/plugin.py b/plugins/QuoteGrabs/plugin.py index 6ec8f9718..09135810f 100644 --- a/plugins/QuoteGrabs/plugin.py +++ b/plugins/QuoteGrabs/plugin.py @@ -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)