Commit Graph

3128 Commits

Author SHA1 Message Date
James Vega
f3a1e36727 Add Dunno plugin from supybot-plugins package
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-05-07 22:50:32 -04:00
James Vega
2b09c70bc3 Remove the Insult plugin
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-05-07 22:43:09 -04:00
James Vega
0615846ab3 Fix getCommandHelp's use of dynamic.msg
Default chan to None so we can still retrieve a config value if dynamic.msg
isn't valid (e.g., when running supybot-plugin-doc).

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-28 08:14:46 -04:00
James Vega
faed698932 Return a fake MakeDB function when documenting plugins.
There's no need to actually search for valid database backends when
documenting.  It only gets in the way of the actual document generation
process.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-27 19:31:58 -04:00
James Vega
4285df0809 Factoids: Fix thinko in getCommandHelp
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-23 16:05:31 -04:00
James Vega
5301390290 BadWords: Only send a msg stripped of formatting if it had bad words
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-14 19:59:59 -04:00
James Vega
f2df22ef1a User: Add private constraint to hostmask.add since a password may be given
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-08 16:55:40 -04:00
James Vega
d6f6f32219 Factoids: Add an __init__ function which calls our parents' __init__s
This ensures that we actually get self.dbCache defined in Factoids

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-06 17:30:53 -04:00
James Vega
804fbe8209 String: Trim trailing \n from encode's response.
Certain encode functions, like base64, add a trailing \n which simply clutters
the response for Supybot.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-06 11:29:11 -04:00
James Vega
6a0b667817 String: Update the codecs URL in encode/decode's help
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-06 11:27:04 -04:00
James Vega
ebfe8e66f3 String: Give a more useful message when decoding base64 fails
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-06 11:26:15 -04:00
James Vega
dfbec681d1 Limiter: Always set the limit above the current number of users
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-03 11:05:48 -04:00
James Vega
187620dddc User: Prevent set.password from failing with an unknown hostmask
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-01 14:33:19 -04:00
James Vega
d8297dfd3f Google: Modify our local simplejson to work pre-Python2.6
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-31 07:50:41 -04:00
James Vega
13715a0ca3 Google: Fix calc by basing the regex off the calc img
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-19 21:10:46 -04:00
James Vega
7b906fbf54 Fully qualify the call to universalImport so we don't get a NameError.
Also added some ImportError handlers to aid letting users of distribution
packages know if the distributions strip out the local module copies.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-19 20:33:17 -04:00
James Vega
843b6d0d02 Config: Show global and channel values for Config.config
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-18 14:41:02 -04:00
James Vega
4e8dde4994 Alias: Add a useful README
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-15 22:13:42 -04:00
James Vega
dc68e112df Add simplejson to the Google plugin and use universalImport
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-15 19:55:14 -04:00
James Vega
abd122ce04 Add dictclient to the Dict plugin and use universalImport
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-15 19:27:44 -04:00
James Vega
0b65c483dc Update RSS's README with the new announce syntax
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-15 19:19:14 -04:00
Jeremy Fincher
ce8b3a556f Merge branch 'master' of ssh://jemfinch@supybot.git.sourceforge.net/gitroot/supybot 2009-03-12 13:49:15 -05:00
Jeremy Fincher
d73b1eecf7 Moved BadWords's kick-check to an inFilter rather than doPrivmsg, so ignored people can still be kicked. 2009-03-12 13:47:12 -05:00
James Vega
22da325656 Math: Move convertcore to the local directory
There's no need to try importing a system-wide copy (for now) as convertcore
is our own munging of convertall's code into a form that's easy for us to use.
This may change in the future.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-11 19:58:21 -04:00
James Vega
3fd92e7f24 RSS: Move feedparser to the local directory
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-11 19:43:23 -04:00
James Vega
ed32faabe1 Math: Remove extra try block in favor of universalImport
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-11 14:06:25 -04:00
Jeremy Fincher
5076241bcd Fixed RSS to include a feedparser which doesn't override the globally-installed one, using universalImport. 2009-03-11 14:06:16 -04:00
Jeremy Fincher
a86b4694d7 Added utils.python.universalImport to make the previous idiom cleaner. 2009-03-11 14:05:53 -04:00
Jeremy Fincher
d6ad5b051f Fix math to be capable of using externally-installed third-party packages, while still providing them for people who don't have them externally installed. 2009-03-11 14:05:26 -04:00
James Vega
f539e65b8e Misc.last: Prevent potential information leaks
Add required predicates which
1) Do not retrieve messages from a channel the calling user isn't in
2) Do not retrieve messages from a +s channel unless the calling user is in a
   query or in that channel

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-08 01:09:25 -05:00
James Vega
856f372303 ChannelLogger: Use a sane timestamp for filenameTimestamp
Closes #2591305

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-08 00:08:59 -05:00
James Vega
d59ac366b3 ShrinkUrl: Add shrinkSnarfer.showDomain config
As requested by BeteNoire, add a config option to disable showing the domain
of the URL shrunk by the snarfer.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-07 23:46:50 -05:00
James Vega
62acb0c998 Make RSS.announce a nested plugin
This simplifies the interface for dealing with announced feeds by providing
separate "announce add", "announce remove", "announce list" commands as
opposed to the one "announce" command with confusing syntax.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-02-28 00:10:10 -05:00
James Vega
0e05fe67c7 No need to define RSS.listCommands
Doing so can lead to RSS feeds being listed multiple times.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-02-27 23:36:29 -05:00
James Vega
46a4076988 Add .gitignore
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-02-27 14:17:31 -05:00
Jeremy Fincher
4de0bb31f9 Corrected slight inaccuracy in a configuration parameter's help. 2009-03-11 13:37:27 -04:00
James Vega
8d21b7a8cf Google: Rename safeSearch to searchFilter to ease upgrades 2009-03-11 13:37:27 -04:00
Jeremy Fincher
ad25afa900 Added supybot.plugins.AutoMode.owner, so the bot can choose not to automode owners. 2009-03-11 13:37:27 -04:00
James Vega
125d542706 Google: Fix Language.normalize to not prepend the empty string with 'lang_' 2009-03-11 13:37:27 -04:00
James Vega
feeded6135 Config: Differentiate between (un)settable config vars
Config.{set,get,default} should only be called on settable config
variables.  Detect whether the given argument is settable and emit an
error if not.  This avoids an uncaught exception.
2009-03-11 13:37:27 -04:00
James Vega
730bca616b Karma: Remove getName function which hasn't been used since 2004 2009-03-11 13:37:27 -04:00
James Vega
ce469b0851 ChannelLogger: Allow logging to be disabled on specific channels 2009-03-11 13:37:27 -04:00
James Vega
125e24ceda Channel.kban: Fall-back to exact hostmask when banmask matches the bot. 2009-03-11 13:37:27 -04:00
James Vega
42ef99a152 Use getBanmask for Channel.{ignore,ban}.add 2009-03-11 13:37:27 -04:00
James Vega
89874f0c3f AutoMode: Use protocols.irc.banmask when banning 2009-03-11 13:37:27 -04:00
James Vega
775fe6fd4c Move plugins.Channel.banmask to protocols.irc.banmask
Also add protocols.irc.banmask.makeBanmask as a common function for
getting a banmask from a hostmask.
2009-03-11 13:37:27 -04:00
James Vega
20dd2a0782 No need to define Alias.listCommands.
Doing so can actually result in duplicate alias listings.
2009-03-11 13:37:27 -04:00
James Vega
62897a9663 Workaround Python's idiocy with float -> str -> float conversions 2009-03-11 13:37:26 -04:00
James Vega
0bc16641b9 Use the timestamp formatter instead of duplicating the code 2009-03-11 13:37:26 -04:00
James Vega
1f3d9e64a3 Add test to ensure quoted factoids are preserved 2009-03-11 13:37:26 -04:00
James Vega
08a0531bf7 Update Factoids.getCommandHelp to respect supybot.reply.showSimpleSyntax 2009-03-11 13:37:26 -04:00
James Vega
9cc917bd36 Guard feedparser import and warn the user if it's not available 2009-03-11 13:37:26 -04:00
James Vega
e938c4d31b Remove dictclient from Dict/ and update Dict/README.txt 2009-03-11 13:37:26 -04:00
James Vega
0ade3a0a4d Remove feedparser from RSS/ and update RSS/README.txt 2009-03-11 13:37:26 -04:00
James Vega
1f4d1fca9f Add test for a bug Tar-Get brought up on IRC 2009-03-11 13:37:26 -04:00
James Vega
507b95a2eb Fix a couple Misc tests 2009-03-11 13:37:26 -04:00
James Vega
0a4c66071b Adjust testTitle to take into account /.'s slight change 2009-03-11 13:37:26 -04:00
James Vega
6590bf898a Do not directly import sets. supybot.utils provides __builtins__['set'] 2009-03-11 13:37:26 -04:00
James Vega
828d41e37d Add utils/crypt.py as a Python version-agnostic crypt module 2009-03-11 13:37:26 -04:00
James Vega
614fa22038 Fix a syntax error in the last command flood commit 2009-03-11 13:37:26 -04:00
James Vega
300443c8f6 Finish the implementation of command flood prevention 2009-03-11 13:37:26 -04:00
James Vega
b99b2c7f64 Add tests for recent bug-fixes 2009-03-11 13:37:26 -04:00
James Vega
cfe0ee8462 Actually set the 'rsz' option if it isn't defined. 2009-03-11 13:37:25 -04:00
James Vega
f772fbf284 Forgot to utf-8 encode the URL from a Google search 2009-03-11 13:37:25 -04:00
James Vega
6cfde5bcc9 Update googleSnarfer to use the new search method 2009-03-11 13:37:25 -04:00
James Vega
2b7c36c747 Remove unused SOAP.py from old Google implementation 2009-03-11 13:37:25 -04:00
James Vega
cbc91c6a26 Use a more appropriate message if the URL definitely has no title. 2009-03-11 13:37:25 -04:00
James Vega
a946effc79 Fix a copy/paste error in User.capabilities help 2009-03-11 13:37:25 -04:00
James Vega
88ca711d6a Change translate to use the (limited) translatable language list. 2009-03-11 13:37:25 -04:00
James Vega
1fbf61c571 Correct parsing of defaultLanguage parameter. 2009-03-11 13:37:25 -04:00
James Vega
62a8306fbb Rewrite most of Google to use the new AJAX API.
Add a translate command as well.
2009-03-11 13:37:25 -04:00
Jeremy Fincher
de69f9da17 Backed out my previous change. I should know better than to question the all-knowing jamessan. 2009-03-11 13:37:25 -04:00
Jeremy Fincher
bec12b6877 Made jamessan's code agree with his comment (and the maximum integer that can fit into two bytes). 2009-03-11 13:37:25 -04:00
James Vega
699bb15f23 Fix a test failure by limiting random.randrange to [-32768, 32767] 2009-03-11 13:37:25 -04:00
James Vega
d39846ae68 Add a pointer to importantPlugins config var in defaultplugin's help. 2009-03-11 13:37:25 -04:00
James Vega
ac2fe7db3a Add azn and uniud commands. 2009-03-11 13:37:25 -04:00
Daniel DiPaolo
2672cf6080 Fixed for a certain user whose name starts with a J and has "Finch" in it. 2009-03-11 13:37:25 -04:00
Jeremy Fincher
1bf4f5554f Added tests for later notes. 2009-03-11 13:37:25 -04:00
Jeremy Fincher
1979f5ad35 Fixed bugs, added tests, etc. 2009-03-11 13:37:25 -04:00
Jeremy Fincher
9a43f04248 Fixed final syntax error, added test. 2009-03-11 13:37:25 -04:00
Jeremy Fincher
67d262a575 Fixed another bug in the new rank command. 2009-03-11 13:37:25 -04:00
Jeremy Fincher
8fefeaa11f Fixed a few bugs in the new rank command. 2009-03-11 13:37:25 -04:00
Jeremy Fincher
479c11e71b Added Later.remove. 2009-03-11 13:37:25 -04:00
Jeremy Fincher
7f7fd4d2c5 Added ChannelStats.rank. 2009-03-11 13:37:24 -04:00
James Vega
7bb3b1ec60 Merge the changes from the python25compat branch into the trunk 2009-03-11 13:37:24 -04:00
James Vega
b24eedf596 Use the hostmask argument isProtected is given instead of trying to use a non-existant variable. 2009-03-11 13:37:24 -04:00
James Vega
74e06ea52a Catch the proper exception when parsing the title fails. 2009-03-11 13:37:24 -04:00
Jeremy Fincher
f1948a2245 Final cleanups for BadWords kicking. 2009-03-11 13:37:24 -04:00
Jeremy Fincher
e292c5d0c9 Added kick ability to the BadWords plugin, imported it from supybot-plugins. 2009-03-11 13:37:24 -04:00
James Vega
068f029355 wrap() String.len to vastly simplify the function and prevent responding with -1 when we get no arguments.
Add a test to make sure we respond with the help when called with no arguments.
2009-03-11 13:37:24 -04:00
James Vega
99696986f6 Only tag the ircmsg if we actually get one back from irc.reply. We don't in situations like: @topic fit [tiny $url] 2009-03-11 13:37:24 -04:00
James Vega
8111c48a49 Switch from rssparser 3.3 to (the renamed) feedparser 4.1 in order to properly handle Bugzilla RSS feeds. 2007-05-09 02:30:18 +00:00
James Vega
a8a7ec56d1 Fix Google.calc ... Google changed their HTML 2007-04-25 19:06:33 +00:00
James Vega
680473b015 If we're using python2.5, import re in place of sre. 2007-04-25 16:12:21 +00:00
James Vega
b57311a68e Remove first person modification of the reason clause and add tests to support it. 2006-11-13 20:27:23 +00:00
Jeremy Fincher
78f03078d8 Handle flusher correctly. 2006-10-13 05:59:39 +00:00
James Vega
5d954f79fe plugins/Google: Update the URLs referencing the search API. 2006-10-02 12:51:08 +00:00
James Vega
ee9aaa89d6 plugins/Web: Swtich the title parser back to HTMLParser sing sgmllib's parser spins on invalid input. 2006-09-13 19:40:51 +00:00
James Vega
4064da76aa plugins/RSS: UTF-8 encode the RSS' URL to prevent an encoding error when including the URL in the reply. 2006-08-28 13:18:12 +00:00
James Vega
3908e989c5 plugins/Factoids: Dynamically generate the help string using the value of supybot.plugins.Factoids.learnSeparator 2006-08-28 13:14:21 +00:00