justify quiting
This commit is contained in:
parent
f33fad269c
commit
a5a9e25643
|
@ -67,6 +67,10 @@ def quote(inp, nick='', chan='', db=None, admin=False):
|
||||||
|
|
||||||
if add:
|
if add:
|
||||||
quoted_nick, msg = add.groups()
|
quoted_nick, msg = add.groups()
|
||||||
|
|
||||||
|
if quoted_nick == nick:
|
||||||
|
return "You can't add quotes for yourself"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
add_quote(db, chan, quoted_nick, nick, msg)
|
add_quote(db, chan, quoted_nick, nick, msg)
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
Loading…
Reference in New Issue