mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-26 21:11:12 -05:00
QuoteGrabs: Prevent quote grabs from queries.
This commit is contained in:
parent
1030a6bc32
commit
a334634367
@ -273,7 +273,7 @@ class QuoteGrabs(callbacks.Plugin):
|
|||||||
# opposed to channel which is used to determine which db to store the
|
# opposed to channel which is used to determine which db to store the
|
||||||
# quote in
|
# quote in
|
||||||
chan = msg.args[0]
|
chan = msg.args[0]
|
||||||
if chan is None:
|
if chan is None or not ircutils.isChannel(chan):
|
||||||
raise callbacks.ArgumentError
|
raise callbacks.ArgumentError
|
||||||
if ircutils.nickEqual(nick, msg.nick):
|
if ircutils.nickEqual(nick, msg.nick):
|
||||||
irc.error(_('You can\'t quote grab yourself.'), Raise=True)
|
irc.error(_('You can\'t quote grab yourself.'), Raise=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user