Workaround to make quote.py return the "quote added" message as a notice (this plugin is kinda shit, I should rewrite it, maybe with fulltext search like todo? :3)w

This commit is contained in:
Luke Rogers 2012-10-17 11:45:11 +13:00
parent ae9d3cdd30
commit a02849d791

View file

@ -134,7 +134,8 @@ def quote(inp, nick='', chan='', db=None, notice=None):
if add:
quoted_nick, msg = add.groups()
return add_quote(db, chan, quoted_nick, nick, msg)
notice(add_quote(db, chan, quoted_nick, nick, msg))
return
elif retrieve:
select, num = retrieve.groups()
by_chan = True if select.startswith('#') else False