justify quiting

This commit is contained in:
Christine Dodrill 2015-12-19 09:58:39 -08:00
parent f33fad269c
commit a5a9e25643
1 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,10 @@ def quote(inp, nick='', chan='', db=None, admin=False):
if add:
quoted_nick, msg = add.groups()
if quoted_nick == nick:
return "You can't add quotes for yourself"
try:
add_quote(db, chan, quoted_nick, nick, msg)
db.commit()