+ elif cmd.startswith("from"):
+ quotes = sum([self.quotedb.quotesfrom(a) for a in authors], [])
+ q = random.choice(quotes)
+ serv.privmsg(canal, q.display(show_context))
+ elif message.startswith(u"!search"):
+ words = message.split()
+ cmd = words[0].lstrip("!")
+ regexp = cmd in ["search" + suffix for suffix in config.regex_suffixes]
+ search = u" ".join(words[1:])
+ quotes = self.quotedb.search(inquote=search, regexp=regexp)
+ if quotes:
+ q = random.choice(quotes)
+ serv.privmsg(canal, q.display(show_context))