elif command == 'help' and arg.startswith('quotes'):
self.notice(sender, "Quotes: .quote add <quote> - adds given quote to database, must have voice or higher on channel.")
self.notice(sender, "Quotes: .quote del <number> - removes quote number from database, must be channel founder.")
- self.notice(sender, "Quotes: .quote search <word> - searches database for given word.")
+ self.notice(sender, "Quotes: .quote search <query> - searches database for given query.")
self.notice(sender, "Quotes: .quote read <number> - messages quote matching given number.")
self.notice(sender, "Quotes: .quote random - messages a random quote.")
self.notice(sender, "Quotes: .quote total - messages number of quotes in database.")
return
num = self.dbp.execute("SELECT id FROM quotes_quotes WHERE channel = %s AND quote LIKE CONCAT('%%',%s,'%%')",
- (cid, args[1]))
+ (cid, ' '.join(args[1:]) ))
res = self.dbp.fetchall()
if num == 0:
self.msg(channel, "[Quote] No quotes found.")