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.
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.