Skip to content

Commit

Permalink
QuoteGrabs: Prevent quote grabs from queries.
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Dec 17, 2014
1 parent 1030a6b commit a334634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/QuoteGrabs/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def grab(self, irc, msg, args, channel, nick):
# 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 ircutils.isChannel(chan):
raise callbacks.ArgumentError
if ircutils.nickEqual(nick, msg.nick):
irc.error(_('You can\'t quote grab yourself.'), Raise=True)
Expand Down

0 comments on commit a334634

Please sign in to comment.