Commit Graph

397 Commits

Author SHA1 Message Date
Jeremy Fincher
1c96752dfa Changed the pass statements to 'raise NotImplementedError' statements so the new changenews test would error out more quickly. 2003-10-07 09:41:05 +00:00
Jeremy Fincher
9e0ab0e73b *Trying*, as hard as possible, to be nice to Windows. 2003-10-05 21:37:29 +00:00
Jeremy Fincher
b1977a1b29 Can't use ChannelDB, it requires SQLite. So we'll use Gameknot. 2003-10-05 21:29:29 +00:00
Jeremy Fincher
6bbbededdc Ugh, Windows. 2003-10-05 21:24:05 +00:00
Jeremy Fincher
6107000658 Slight formatting changes and whatnot. 2003-10-05 20:33:01 +00:00
Jeremy Fincher
c32a207791 Updated to allow flags to be specified in assert{Not}Regexp, and to default to use re.I. 2003-10-05 20:32:42 +00:00
Jeremy Fincher
498682d830 Changes to be nice to Windows. 2003-10-05 20:05:53 +00:00
Jeremy Fincher
ef517515f7 Removed star imports. 2003-10-05 13:02:56 +00:00
Jeremy Fincher
6320511166 Added a few more asserts to *SetTestCase.testReprEval. 2003-10-05 11:57:25 +00:00
Jeremy Fincher
8ef808a039 Some bugs were being shadowed for some reason, and there were bugs in the handling of the owner privilege that hadn't been found because those tests had been shadowed. 2003-10-05 11:42:58 +00:00
Jeremy Fincher
66fc538a3a Changed the anti-capability prefix to - instead of !. 2003-10-05 11:13:20 +00:00
Jeremy Fincher
fee74e9bd1 Moved some stuff to the __main__ part to make sure it's called only once. 2003-10-05 04:42:46 +00:00
Jeremy Fincher
93cc17ab43 Updated to make sure the test doesn't run if sqlite isn't installed. 2003-10-04 13:59:50 +00:00
Jeremy Fincher
d4ba047b2f Added smallqueue class. 2003-10-04 13:20:41 +00:00
Jeremy Fincher
b9d265c102 Added docstrings, removed some unused methods. 2003-10-04 12:00:56 +00:00
Jeremy Fincher
9543859047 Changed searchfactoids to default to a glob search; --regexp and --exact searches work with specific options. 2003-10-04 10:16:57 +00:00
Jeremy Fincher
9f24c13be8 Moved the list of commands from cmdstats to the commands command. 2003-10-03 22:55:34 +00:00
Jeremy Fincher
baf5da1855 Added 'private' command, to reply in private. 2003-10-03 15:42:11 +00:00
Jeremy Fincher
1e8f8f634f Updated testConvert for the new output format. 2003-10-03 14:44:04 +00:00
Jeremy Fincher
1e64fad163 Fixed replyNoCapability messages to be in private. 2003-10-03 10:04:40 +00:00
Jeremy Fincher
36984d3fa5 Added RFE #801859: no-hostmask (secure) option for users. 2003-10-03 09:57:52 +00:00
Jeremy Fincher
d52c8b90b4 Test for multiple regexp matching. 2003-10-03 00:25:57 +00:00
Jeremy Fincher
ff6fdf02f3 Added convert and units command. 2003-10-02 23:19:38 +00:00
Jeremy Fincher
4bda1fc74a Bug fixes for .so modules. 2003-10-02 16:13:49 +00:00
Jeremy Fincher
4eaec74eea Made to index from 1 instead of 0. 2003-10-02 06:10:55 +00:00
Jeremy Fincher
746e292693 Made to index from 1 instead of 0. 2003-10-02 06:10:54 +00:00
Jeremy Fincher
a8d7de246d Made indexing start from 1 instead of 0. 2003-10-02 05:58:53 +00:00
Jeremy Fincher
32eb85e3c5 Fix for KeyError escaping from stats. 2003-10-02 00:43:38 +00:00
Jeremy Fincher
3d0bc9f8b2 Moved the bug command to AdminCommands to reduce abuse. 2003-10-02 00:26:57 +00:00
Jeremy Fincher
4fc4df9ff4 Forgot to update the test for the new seen behavior. 2003-10-02 00:26:53 +00:00
Jeremy Fincher
3891360527 Changed irclib.Channel to irclib.ChannelState. 2003-10-01 11:15:31 +00:00
Jeremy Fincher
2ea1052d06 Forgot to update this test based on the move of cpustats to the Status plugin. 2003-10-01 11:12:31 +00:00
Jeremy Fincher
538a262341 Moved {zen,pydoc} to the Python plugin and {whois,dns} to the Network plugin. 2003-10-01 11:12:06 +00:00
Jeremy Fincher
f84345048a Fix for bug #815242, pydoc fnmatch.fnmatch fails. 2003-09-30 22:12:50 +00:00
Jeremy Fincher
8b04e1c537 Added cmdstats command. 2003-09-30 11:04:44 +00:00
Jeremy Fincher
ce3043a50f Initial checkin. 2003-09-30 10:47:05 +00:00
Jeremy Fincher
2da90c99d6 Guarded IrcState.doMode to work only with channels. 2003-09-29 07:46:03 +00:00
Jeremy Fincher
6169822349 Guarded IrcState.doMode to work only with channels. 2003-09-29 07:44:27 +00:00
Jeremy Fincher
a91c55a93a Updated to use checkChannelCapability. 2003-09-29 05:01:41 +00:00
Jeremy Fincher
6429a00a9a Made sure to reset the debug file descriptors; fixed logfilesize test. 2003-09-29 04:42:15 +00:00
Jeremy Fincher
0843710626 More complete tests. 2003-09-29 04:36:41 +00:00
Jeremy Fincher
6e23e1d080 Made sure ChannelPluginTestCase actually joined the channel in setUp. 2003-09-29 04:36:05 +00:00
Jeremy Fincher
fe4af22e50 Added op/halfop/voice handling in IrcState. 2003-09-29 04:30:18 +00:00
Daniel DiPaolo
b71787b702 * Added a required per-channel news capability
* Fixed tests (syntax error, tabs/spaces)
* Updated addnews to use new persistent userids
2003-09-26 22:40:35 +00:00
Jeremy Fincher
2682670fc6 Added test for the recent bug fixed in addressed. 2003-09-25 16:12:43 +00:00
Jeremy Fincher
359ad14888 Updated for the help/morehelp -> syntax/help conversion. 2003-09-25 08:29:24 +00:00
Jeremy Fincher
c3e9c38b6a Changed @help to @syntax, @morehelp to @help, and changed the output of @morehelp to be prettier. 2003-09-25 08:14:46 +00:00
Jeremy Fincher
923a38b4ed Fix for RFE #811853, and fix for bug where @voice would actually try to give halfops (good thing no one ever found that :)) 2003-09-25 07:52:03 +00:00
Jeremy Fincher
ad78a341a5 Fixed bug in the test. 2003-09-25 07:38:59 +00:00
Jeremy Fincher
873fbe20bc Oops, removed a not-so-extra non-blank line. 2003-09-25 07:38:27 +00:00
Jeremy Fincher
12e9e037d4 Removed an extra blank line. 2003-09-25 07:37:49 +00:00
Jeremy Fincher
a13c8ab528 Removed the old sys.path-munging code now that we're disutil'ed. 2003-09-24 07:28:25 +00:00
Jeremy Fincher
1c86e6f40c Removed shrink command since it's mostly unnecessary since we got the mores. 2003-09-24 04:19:23 +00:00
Jeremy Fincher
12d707a90f Updated IrcObjectProxyRegexp.reply to match the interface of IrcObjectProxy.reply. 2003-09-23 20:45:00 +00:00
Jeremy Fincher
23453eff6a Made the game snarfer not prefix the response with the the nick. 2003-09-23 20:26:25 +00:00
Jeremy Fincher
3f78522f15 Made sure the error message is correct when a user tries to removeCapability something that isn't there. 2003-09-23 17:05:53 +00:00
Jeremy Fincher
b50a01db7d Made sure IrcUser.removeCapability raises KeyError on capabilities the user doesn't have. 2003-09-23 17:04:53 +00:00
Jeremy Fincher
7081d64124 Added test for IrcSet. 2003-09-23 15:52:36 +00:00
Jeremy Fincher
b4b2b2b883 Added --with option to quote command. 2003-09-22 22:11:05 +00:00
Jeremy Fincher
e40183f1e5 Fixed stupid verisign bug. 2003-09-22 18:00:16 +00:00
Jeremy Fincher
3e28059c9e Fixed bug in genre pluralization. 2003-09-22 17:32:12 +00:00
Jeremy Fincher
f325de3a76 Thought of a bug, wrote a test, discovered it was a bug, fixed it. 2003-09-22 13:04:15 +00:00
Jeremy Fincher
29d297af8d Oops, missed something that should've been in the test case. 2003-09-22 11:43:35 +00:00
Jeremy Fincher
d39475b528 Made sure PluginDocumentation didn't check PrivmsgRegexp instances. 2003-09-22 10:27:15 +00:00
Jeremy Fincher
d2eff8fdaf RFE #810366: --private option to MiscCommands.list. 2003-09-22 10:22:06 +00:00
Jeremy Fincher
a1da1ba14d Made IrcObjectProxy.error respect conf.errorReplyPrivate. 2003-09-22 09:45:23 +00:00
Jeremy Fincher
e75b92853b Fixed bug with channel capabilities for channels with . in their name. 2003-09-22 09:18:13 +00:00
Jeremy Fincher
1ac029a54c Added rsplit function. 2003-09-22 09:13:40 +00:00
Jeremy Fincher
cae8905594 RFE #807340: OwnerCommands command for setting conf variables. 2003-09-22 08:36:12 +00:00
Jeremy Fincher
a02282c957 Changed how logging through the debug module is handled. 2003-09-18 10:25:47 +00:00
Jeremy Fincher
76cb2a05d1 Added test for behavior. 2003-09-18 10:20:00 +00:00
Jeremy Fincher
f4d7b28a95 Added test for unregister. 2003-09-18 10:16:20 +00:00
Jeremy Fincher
ce293a32cc Added second test of 433 response. 2003-09-18 10:06:58 +00:00
Jeremy Fincher
4ab9dc7718 Added changeusername command and fixed the framework so tests could run. 2003-09-18 07:52:34 +00:00
Jeremy Fincher
3af8f1c790 Added private and action keywords to IrcObjectProxy.reply and converted FunDB to use them. 2003-09-18 07:26:21 +00:00
Jeremy Fincher
0a2539c199 Fixed bug where ChannelPluginTestCase would try to chop off the first word of an ACTION. 2003-09-18 07:19:47 +00:00
Jeremy Fincher
40de833c24 Converted test framework to use the new functions in OwnerCommands. 2003-09-18 05:59:08 +00:00
Jeremy Fincher
fd1aacbd64 Fixed snarfer for drawn games. 2003-09-17 21:31:04 +00:00
Jeremy Fincher
70b80f0622 Added configuration variable to determine whether pipe syntax is accepted. 2003-09-17 19:19:38 +00:00
Jeremy Fincher
1c99146f41 Added some try/finallies to make sure replyWhenNotCommand always got reset properly. 2003-09-17 19:16:56 +00:00
Jeremy Fincher
41339e80e7 Added an exception for malformed IRC messages and a little more error checking to the string parsing for IrcMsgs. 2003-09-17 18:21:35 +00:00
Jeremy Fincher
457de48be4 Made sure no information is leaked with last being able to return private messages. 2003-09-17 08:07:24 +00:00
Jeremy Fincher
288f6179d6 Fixed a bug in the handling of the msg keyword argument in IrcMsg. 2003-09-17 07:53:11 +00:00
Jeremy Fincher
9ed2dcbc31 Fixed bug #807245, changetopic reorders topics. 2003-09-16 18:08:33 +00:00
James Vega
32b0b65475 plugins/FunDB.py: added support for dbchange
test/test_FunDB.py: added testing for dbchange
2003-09-16 16:49:17 +00:00
Daniel DiPaolo
3da65af7c8 * Beginnings of news stuff, yay 2003-09-14 07:38:26 +00:00
Jeremy Fincher
feb85382af Made usernames case-insensitive. 2003-09-14 07:05:41 +00:00
Jeremy Fincher
9f51a69d96 Moved calc and rpn from FunCommands to the new Math plugin. 2003-09-13 15:00:22 +00:00
Jeremy Fincher
b34b6efd14 Fixed to use the proper nick. 2003-09-13 14:48:49 +00:00
Jeremy Fincher
d2ec31c45b Fixed bug in removeAlias that it wouldn't clear the frozen set. 2003-09-13 14:46:03 +00:00
Jeremy Fincher
358533b335 Removed deepthought command now that we have a supyfact for it. 2003-09-13 13:39:41 +00:00
Jeremy Fincher
fb60da149b Added ability to specify optional arguments in aliases with @\d+. 2003-09-13 13:30:33 +00:00
Jeremy Fincher
5a15783e7a Made sure chanop capability supercedes everything else. 2003-09-13 12:59:22 +00:00
Jeremy Fincher
41d266f207 Updated ircdb to have persistent user ids. 2003-09-12 20:06:58 +00:00
James Vega
f524ec0ac9 plugins/Quotes.py: addquote now announces the id of the new quote
test/test_Quotes.py: updated to reflect change in plugin
2003-09-12 13:23:09 +00:00
Jeremy Fincher
0aa448bfc7 Added keyword option And to commaAndify to allow specifying a word other than 'and' as the last separator. 2003-09-12 08:55:30 +00:00
Jeremy Fincher
da8ee2a758 Fixed bug where the bot would respond with 'there is no such command' if it wasn't the canonical name. 2003-09-12 06:59:41 +00:00
Jeremy Fincher
ab88ee0d25 Fixed bug where he'd reply that a command didn't match when regexp methods matched. 2003-09-11 05:31:01 +00:00
Jeremy Fincher
ec1e60bf00 Updated test to reflect new msg.nick != irc.nick guard in doPrivmsg. 2003-09-11 05:16:12 +00:00
Jeremy Fincher
273e4a7a0c Added removeAlias method for easy access from within other plugins. 2003-09-10 21:15:09 +00:00
Jeremy Fincher
dca69510f3 Extracted alias-adding functionality out into a function usable from within other plugins. 2003-09-10 20:25:15 +00:00
Jeremy Fincher
d46f6494e7 Made --url into --fancy and made simple URL responses the default. 2003-09-10 18:15:28 +00:00
Jeremy Fincher
176b9b30b6 Fix for RFE #801934: Response in case of non-commands. 2003-09-10 08:32:20 +00:00
Jeremy Fincher
ffefdf1ab7 Added new pipe syntax to check for recursive aliases. 2003-09-10 08:15:44 +00:00
Jeremy Fincher
e0fae30f46 Now allow multiple plugin directories, RFE #802614. 2003-09-10 06:05:58 +00:00
Jeremy Fincher
73986cb03c Fixed new assert in testTitle. 2003-09-10 05:58:38 +00:00
Jeremy Fincher
ecc820a49c Fixe for bug with titles that spread across lines. 2003-09-09 21:00:36 +00:00
Jeremy Fincher
949deee935 Added RFE #802856, so regexps aren't required by searchfactoids. 2003-09-09 08:41:16 +00:00
Jeremy Fincher
073040d92e Fixed bug #802804 about the bad appearance of [not an acronym]. 2003-09-09 08:33:07 +00:00
Jeremy Fincher
d68c42684d Fixed bug #802801 about calc exposing too ugly error messages. Added tests. 2003-09-09 08:25:33 +00:00
Jeremy Fincher
e386518997 Fixed escaping KeyError and added test. 2003-09-09 07:57:49 +00:00
Jeremy Fincher
2719812074 Fixed bug with ACTIONs and added test. 2003-09-09 07:36:41 +00:00
Jeremy Fincher
071f3916f8 Most IrcMsg.__hash__ were returning 0, because I was using & instead of ^ 2003-09-08 20:29:02 +00:00
Jeremy Fincher
b00743c242 Changed tests to work with new name for unlearn (forget) 2003-09-08 09:10:09 +00:00
Jeremy Fincher
43fbbb9b70 Changed to use callbacks.reply again, now that we have the prefixName option. 2003-09-08 08:50:57 +00:00
James Vega
9d8aa07f86 Added pgpkey and a test case for it 2003-09-08 08:48:33 +00:00
Jeremy Fincher
6aa3e06402 Raise ValueError in the case of bad input. 2003-09-08 06:10:06 +00:00
Jeremy Fincher
66b62a42cd Fixed calc command. 2003-09-07 20:29:42 +00:00
Jeremy Fincher
4bb8d6a479 Fixed xor test case. 2003-09-07 10:07:33 +00:00
Jeremy Fincher
315d8710dc Added pipe syntax. 2003-09-07 09:41:47 +00:00
Jeremy Fincher
c07468e275 Added test to make sure .sendMsg went before .queueMsg. 2003-09-07 08:28:33 +00:00
Jeremy Fincher
e53d4e7f87 Removed less command. 2003-09-07 06:34:07 +00:00
Jeremy Fincher
e3148c03fe Removed foldoc command (it's markedly inferior to Dict.dict). 2003-09-07 06:32:13 +00:00
Jeremy Fincher
d11d24c420 Fixed a bug in testExclaim. 2003-09-07 06:07:42 +00:00
Jeremy Fincher
3ba5942be9 Added test for more command and framework. 2003-09-07 05:33:37 +00:00
Jeremy Fincher
5ef3d7c5f5 Moved tell and last commands from FunCommands to MiscCommands. 2003-09-07 05:26:18 +00:00
Jeremy Fincher
c711dc9d2d Fixed commented-out test. 2003-09-06 22:00:00 +00:00
Jeremy Fincher
8a70f15e89 Fixed bug in aliases with no arguments and added test for it. 2003-09-06 21:58:42 +00:00
Jeremy Fincher
e01d52b2f2 Added less command. 2003-09-06 21:51:21 +00:00
Jeremy Fincher
4dfa786c89 Added tests purely for documentation. 2003-09-06 18:29:35 +00:00
Jeremy Fincher
5ea31bb3df Added PluginDocumentation tests. 2003-09-06 18:20:01 +00:00
Jeremy Fincher
8fa457ec3a Guard TwistedCommandsTestCase against not having twisted. 2003-09-06 07:52:18 +00:00
Jeremy Fincher
74d3b7820f Added PluginDocumentation to test to make sure all commands have documentation. 2003-09-06 06:23:03 +00:00
Jeremy Fincher
7023b25223 Added tests for the longest, stupidest bug in existence. 2003-09-06 05:29:35 +00:00
Jeremy Fincher
6d9cf3e0a2 Added test for empty topic in IrcState. 2003-09-06 03:53:23 +00:00
Jeremy Fincher
3eb86b8869 Made PRIVMSG and NOTICE low-priority so TOPIC would happen before them. 2003-09-06 02:01:44 +00:00
Jeremy Fincher
184e9be97d Added another tiny test to Notes. 2003-09-06 01:11:06 +00:00
Jeremy Fincher
7f77e68384 Added a test. 2003-09-05 20:49:29 +00:00
Jeremy Fincher
7501b3a625 Moved dict stuff to its own plugin. 2003-09-05 20:22:43 +00:00
Jeremy Fincher
21f0cb89ae Moved babelfish stuff to its own plugin. 2003-09-05 19:49:44 +00:00
Jeremy Fincher
57146b93cf Added tests for src/ modules. 2003-09-05 18:47:58 +00:00
Jeremy Fincher
7e80782452 Added a test to make sure JOINs happen before WHOs, and changed code to make that the case. 2003-09-05 18:16:51 +00:00
Jeremy Fincher
f1a9b3f546 Added a sleep to the spinloop so it doesn't suck up 100% cpu. 2003-09-05 17:35:46 +00:00
Jeremy Fincher
0c77571ce8 Added test for searchfactoids. 2003-09-05 15:37:56 +00:00
Jeremy Fincher
85fad59aaf Added whois test. 2003-09-05 10:58:53 +00:00
Jeremy Fincher
596958c4cc Added beGracious, changed to raw strings for regexps, and created test. 2003-09-05 09:40:26 +00:00
Jeremy Fincher
d02b4253a4 Added a test for empty []. 2003-09-05 08:37:06 +00:00
Jeremy Fincher
d43b1ea700 Added dictionaries command and changed the order of the arguments to the dict command; also added --fancy argument to last command. 2003-09-05 04:28:56 +00:00
Jeremy Fincher
f65829b768 Moved several things from fix.py to utils.py. 2003-09-04 20:42:37 +00:00
Jeremy Fincher
a002393085 Added test for pydoc assert. 2003-09-03 18:18:51 +00:00