Commit Graph

40 Commits

Author SHA1 Message Date
James Vega
18138da1c0 Catch some sqlite exceptions that probably shouldn't be happening, but I
don't have the best of luck with sqlite.
2004-06-19 18:03:58 +00:00
James Vega
5633b9d46b Updated the tiny regexp to match the site's new layout. Added more checks for
nonSnarfingRegexp. Lowered the minimum length we check for tiny URLs since
they can be as short as 20 characters.
2004-06-07 19:45:49 +00:00
Jeremy Fincher
21b1acd3f4 Oops, forgot to update these for the protocols change. 2004-04-30 15:03:20 +00:00
Jeremy Fincher
b5ac09b4e1 Oops, forgot to update these for the reviter=>reversed change. 2004-04-22 02:55:46 +00:00
James Vega
ca9f696c8c Weed out the last of the floating point COUNT bugs 2004-04-19 15:16:31 +00:00
Jeremy Fincher
4b1e5b5a74 Don't display errors in snarfers,, mo. 2004-02-27 17:20:57 +00:00
Jeremy Fincher
4786631c6c Made title snarfer not snarf if the URL is in an addressed message. 2004-02-13 21:57:38 +00:00
Jeremy Fincher
6e062306f2 Added output to the list of functions imported from questions. 2004-02-06 04:36:21 +00:00
Stéphan Kochen
5957eaad5d Lots of wizard updates. Still have to get rid of the onStart and
afterConnect stuff though.
2004-01-31 22:24:43 +00:00
Jeremy Fincher
7f2578a13e Updated to make the tests pass. 2004-01-31 22:04:46 +00:00
Jeremy Fincher
941d4e1523 Updated to put just the domain rather than the whole url in snarfer replies. 2004-01-31 20:52:24 +00:00
James Vega
fac4c5624c Removed any unnecessary configure methods (ones that only called
conf.registerPlugin) and changed all other configure methods to accept the
advanced argument instead of onStart.
2004-01-29 23:58:27 +00:00
Jeremy Fincher
7f107ff9c2 Made maxSize a config variable, supybot.httpPeekSize. 2004-01-28 16:14:12 +00:00
Jeremy Fincher
b2f5fb630c Made hierarchical. 2004-01-28 15:53:46 +00:00
Jeremy Fincher
64f4013a2f Updated to use the registry. 2004-01-27 18:09:35 +00:00
Jeremy Fincher
eb217d82ae Changed num to stats. 2004-01-18 08:19:44 +00:00
Jeremy Fincher
6ca78924f3 HUUUUUUUUGE Configuration change. 2004-01-18 07:58:26 +00:00
James Vega
1c2bdcbf3d TinyURLs are now 24 characters in length 2004-01-08 23:53:08 +00:00
Jeremy Fincher
1c03464fd9 Huge commit to finish refactoring of replies. 2004-01-08 23:03:48 +00:00
Jeremy Fincher
530aec2be0 Updated the reply infrastructure. No more msg, it's just not necessary. 2004-01-08 03:12:14 +00:00
Jeremy Fincher
669ac8995f Moved _urlRe to webutils as urlRe. 2004-01-04 11:18:53 +00:00
Jeremy Fincher
8b6733ee5d Fixed some bugz0rs. 2004-01-02 19:54:25 +00:00
Jeremy Fincher
24d191d5dc Added non-snarfing-regexp and title-snarfer-includes-url configurables. 2004-01-01 20:08:03 +00:00
Jeremy Fincher
7ce4ab206c Added titleSnarfer (RFE #842238). 2003-12-17 13:55:22 +00:00
Jeremy Fincher
3398f1a819 Made the error message better when people try to run a plugin that requires sqlite and they don't have it. 2003-12-03 23:48:00 +00:00
Jeremy Fincher
2aaca31709 Moved Configurable out to its own module. 2003-12-03 23:14:09 +00:00
Jeremy Fincher
48166f4895 Huge update to the logging infrastructure. 2003-11-26 18:21:12 +00:00
Jeremy Fincher
5f4a541fe1 Added __revision__ strings. 2003-11-25 08:23:47 +00:00
Jeremy Fincher
fb4a4ffca7 Changed the default of the snarfer, added a question to configure. 2003-11-19 23:34:53 +00:00
James Vega
f6e848511b All tinyurl related commands now query the local database to see if a tinyurl
already exists for the url that is being snarfed/passed as an argument. If
not, tinyurl.com is used to generate the tinyurl
2003-11-17 17:30:53 +00:00
Jeremy Fincher
3a571c3fb9 Updated to thread tinyurl (there's still an un-passing test, but it seems to work on the bot itself). 2003-11-17 06:02:26 +00:00
James Vega
965d8e0b5f The dots need to escape from tinyurl 2003-11-12 17:30:24 +00:00
James Vega
988ac324b4 Not all tinyurls end in 4 random characters, so I shouldn't be looking for 4
characters. Switched to \w+
2003-11-12 14:39:44 +00:00
Jeremy Fincher
5149d17b6a Made Configurable persistent. 2003-11-11 15:58:20 +00:00
Jeremy Fincher
4cc9579582 Fixed bug in tests; it was caused by the prefix character being snarfed in along with the URL. 2003-11-10 23:24:19 +00:00
Jeremy Fincher
3275859597 Converted to Configurable. Also reverted the _urlRe back to the old version, which works better. I don't care that parentheses are valid URL characters, they simply never happen in practice. Practicality beats Purity. 2003-11-08 09:26:33 +00:00
James Vega
c32939ffb1 Using 'was url)' caused problems since () are legal characters in a url.
Switched to 'was <url>)' for tinysnarf replies.
2003-11-07 14:59:33 +00:00
James Vega
a46476a9ca Remove @url get. Add the snarfed url when replying with the tinyurl. Tests are
updated accordingly. @random will display the corresponding tinyurl when
someone decides on the display format
2003-11-05 20:37:39 +00:00
James Vega
84bff2f755 @tiny should be specifying cmd=True when I call _getTinyUrl. That was the
whole point of having a cmd parameter.
2003-11-05 19:45:55 +00:00
Jeremy Fincher
a456c5ea57 Changed the name to URL. 2003-11-04 08:48:05 +00:00