From e2d8ec58a3064fba08d4cfaa6e18d60c6abde23a Mon Sep 17 00:00:00 2001 From: Sridhar Ratna Date: Tue, 1 Jan 2008 15:26:48 +0000 Subject: [PATCH] linux-india madness --- plugins.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins.py b/plugins.py index 6625d15..758de85 100644 --- a/plugins.py +++ b/plugins.py @@ -98,6 +98,7 @@ class BotActions(object): def grep(self, msg, words): for word in words: + # XXX: this does not search for a word, but substring! if word in msg: return True return False @@ -162,6 +163,7 @@ class Commands(BotActions): self.toChannel(result) cmd_e = cmd_eval + @limitFreq(60*2) def cmd_google(self, search_terms=None): "search the internet" if search_terms: @@ -290,6 +292,7 @@ class Filters(BotActions): ])) _filter_links_url = re.compile('.*(https?://[^ ]*).*') + @limitFreq(60*2) def filter_links(self, msg): "Show in channel" match = self._filter_links_url.match(msg) -- 2.11.4.GIT