rmmh/skybot — pull request #47 by frankcrook (2012-01-31 21:22:17+00:00)
Title: Refactored quote.py. Individual quotes come from sqlite, rather than all results

The changes make the quote plugin select a single row when selecting a quote, rather than all of the possible results. Two queries are made rather than one (using a COUNT(*) first, then a SELECT with a LIMIT).

Also refactored the code to make it easier to add functionality in the future, such as a .q delete.