diff options
| author | 2019-09-05 18:09:16 +0100 | |
|---|---|---|
| committer | 2019-09-05 18:09:16 +0100 | |
| commit | 6d1e7ad4b255ad296b5dcfbbb5ab6f300b6fec8e (patch) | |
| tree | 5a2810dee730153142d8a1e7b78358674e52bbc6 /modules/quotes.py | |
| parent | show how many quotes found when searching with !quote (diff) | |
| signature | ||
remove !qadd because !quote does the same things now
Diffstat (limited to 'modules/quotes.py')
| -rw-r--r-- | modules/quotes.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/modules/quotes.py b/modules/quotes.py index 54311a68..2e972a2b 100644 --- a/modules/quotes.py +++ b/modules/quotes.py @@ -30,30 +30,6 @@ class Module(ModuleManager.BaseModule): else: event["stderr"].write("Please provide a category AND quote") - @utils.hook("received.command.qget", alias_of="quoteget") - @utils.hook("received.command.quoteget", min_args=1) - def quote_get(self, event): - """ - :help: Get a quote from a ccategory - :usage: <category> = <search> - """ - category, to_find = self.category_and_quote(event["args"]) - if category and to_find: - to_find = to_find.lower() - quotes = event["server"].get_setting("quotes-%s" % category, []) - found = [] - for nickname, time_added, quote in quotes: - if to_find in quote.lower(): - found.append(quote) - if found: - event["stdout"].write("%d quote%s found: %s" % (len(found), - "s" if len(found) > 1 else "", found[0])) - else: - event["stderr"].write("No quotes found") - else: - event["stderr"].write("Please provide a category and a " - "part of a quote to find") - @utils.hook("received.command.qdel", alias_of="quotedel") @utils.hook("received.command.quotedel", min_args=1) def quote_del(self, event): |
