Commit Graph

7058 Commits

Author SHA1 Message Date
James Vega
0d5462f446 Remove "Twisted is used if detected" from supybot.drivers.module
This description is no longer accurate as the autodetection code has
been disabled for almost 3 years.
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
768119d258 Directly call isCommandMethod from listCommands. 2009-03-11 13:37:27 -04:00
James Vega
0b6926826a Make sure getCommandMethod only returns a valid command method
In situations like an alias, simply using getattr(self, command[0]) may
return a class method instead of the alias (think "Alias add die ...").
2009-03-11 13:37:26 -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
e787c7aa49 Clarify comment about timestamp() override 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
eb6117da4f Embed formatArgumentError in Commands._callCommand.
This allows it to utilize getCommandHelp which means that plugins which define
their own getCommandHelp will no longer have broken help responses when
ArgumentError exceptions are raised.
2009-03-11 13:37:26 -04:00
James Vega
338a899782 Make getCommandHelp respect supybot.reply.showSimpleSyntax 2009-03-11 13:37:26 -04:00
James Vega
026a683dec Update cachingGetHelp to match callbacks.getHelp's prototype 2009-03-11 13:37:26 -04:00
James Vega
c936897488 Allow doc to be specified for getSyntax, similar to getHelp 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
3d5c877f80 Finally fix the XXX we had for httpUrlRe and urlRe 2009-03-11 13:37:26 -04:00
James Vega
75c300c6b0 Remove useless sets import and extraneous newlines 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
d72b696739 Do not pass arguments to object's __init__ 2009-03-11 13:37:26 -04:00
James Vega
73fb339b04 Only disable prefixNick if action is actually True 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
a9d1830303 Do not prefixNick for actions 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
Jeremy Fincher
9f3bc9d355 IrcCallback's super() doesn't take any args. 2009-03-11 13:37:25 -04:00
Jeremy Fincher
8786b4c993 Added clearq command to clear the send queue. 2009-03-11 13:37:25 -04:00
Jeremy Fincher
d08eee8f13 Made httpUrl arg wrapper add http:// if that produces a valid http url. 2009-03-11 13:37:25 -04:00
Jeremy Fincher
526e71e104 Added test for firewall, fixed implementation so it actually works. 2009-03-11 13:37:25 -04:00
Jeremy Fincher
9d474f7824 We can still continue if we're unable to load a plugin. 2009-03-11 13:37:25 -04:00
James Vega
2f15eb2418 getHaveOp needs to call getChannel if state.channel isn't set 2009-03-11 13:37:25 -04:00
James Vega
4827155c6b Use network.ssl.setValue instead of network.ssl.set 2009-03-11 13:37:25 -04:00
James Vega
e31d352e57 Correct the logic in _handleSocketError 2009-03-11 13:37:25 -04:00