From 19d28d61623f226c486b88fcd1356daa163da8d9 Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 30 Mar 2019 14:57:40 +0000 Subject: [PATCH] dont attribute quotes to people who didnt say them --- dave/modules/quote.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dave/modules/quote.py b/dave/modules/quote.py index ccff063..71f353a 100644 --- a/dave/modules/quote.py +++ b/dave/modules/quote.py @@ -36,8 +36,10 @@ def quote(bot, args, sender, source): random.randrange(query.count()) ).first() + attr = " by " + row.attributed if row.attributed else "" + bot.reply(source, sender, assembleFormattedText(A.normal[ - A.bold[row.quote], " by ", (row.attributed or row.added_by) + A.bold[row.quote], attr ])) @dave.module.help("Syntax: fq [search]. Search for a quote.") -- libgit2 1.7.2