Commit Graph

803 Commits

Author SHA1 Message Date
Daniel DiPaolo 6092ce484a Added the 'list' function, added code to prevent duplicate grabs being added to
the database.
2003-11-04 04:38:40 +00:00
Daniel Berlin def70e1ff5 Make different randomdates and randomints in the same string give different values
add tests to make sure it happens
2003-11-04 03:52:50 +00:00
James Vega c362784a2e Added a comment regarding a current bug in @bugs and @rfes 2003-11-03 23:15:47 +00:00
Daniel DiPaolo 33775aea0d First bit of quotegrab testing, just tests existing functionality.
More tests to come when functionality is added.
2003-11-03 19:22:06 +00:00
Jeremy Fincher 3fde50eaf9 Initial Checkin. 2003-11-03 06:59:38 +00:00
Jeremy Fincher bc5529c87d Forgot to update the second call _disambiguate to the new interface. 2003-11-03 06:55:51 +00:00
Jeremy Fincher 66797de4bf Changed the name of the quote command to get. 2003-11-03 06:36:18 +00:00
Daniel DiPaolo cc94948d10 Fixed greedniess of a few regexes and did some associated fixes. 2003-11-03 06:25:02 +00:00
James Vega bf12760108 Added tinyurl stuff 2003-11-03 05:39:14 +00:00
James Vega 526c4c3e56 setdefault -> defaultproject
defaultproject without a project name clears the default project
cleanup bugs and rfes a little (although they aren't working in the case of
'bugs #'. must use 'bugs project #')
2003-11-03 01:12:00 +00:00
James Vega 72e554350b Added support for more countries (should support all english-speaking
countries) and added support for ebay.com/.*?/ws as opposed to just
ebay.com/ws
2003-11-03 00:16:43 +00:00
Daniel DiPaolo 96f299c10c Included plugins.standardSubstitute in factoids parsing now 2003-11-02 23:45:31 +00:00
James Vega 68d36db874 Snarfer cleanups and toggle tests 2003-11-02 20:31:37 +00:00
Jeremy Fincher f27ba11741 Added test to make sure reloading sets doesn't kill the subclasses of sets.Set (which may in the future not be subclasses of sets.Set. 2003-11-02 19:01:03 +00:00
Jeremy Fincher d816bc6a68 Added selfstats toggle; Fixed karma to be case-insensitive but case-preserving. 2003-11-02 18:59:06 +00:00
James Vega 4d77ffc92e Added the ASPN Recipe snarfer (RFE #831028) and tests 2003-11-02 18:55:08 +00:00
Jeremy Fincher 5f55e2b589 Added a test for randomnick and fixed the bug it found. 2003-11-02 18:23:04 +00:00
Jeremy Fincher e46e2483b7 Added a few more tests, and one for the case-preservation characteristics of karma with multiple arguments. 2003-11-02 18:04:49 +00:00
Jeremy Fincher 31ef30d961 Changed the name of some variables ('whore' doesn't partse as 'who re{gexp}') and added tests. 2003-11-02 16:45:38 +00:00
Daniel DiPaolo 82d2d8162a Fixed a bug where addFactoid wasn't splitting on the first "is" 2003-11-01 22:08:52 +00:00
Daniel DiPaolo 15b18edc11 made karma case-insensitive 2003-10-31 21:03:35 +00:00
Jeremy Fincher 07ef648e1c Made the tests for callbacks.addressed more extensive. 2003-10-31 20:04:55 +00:00
James Vega 9e7a37e5bf Test praise for good measure 2003-10-31 18:44:13 +00:00
James Vega d50d435363 For some reason I was replacing the bot's name with the user's name 2003-10-31 18:43:08 +00:00
Jeremy Fincher 8c93488146 Fixed Bug #833786 (spurious brackets not handled correctly). 2003-10-31 18:18:04 +00:00
Jeremy Fincher c3d7efa68b Fixed bug with reload not working with non-canonicalNames. 2003-10-30 18:05:57 +00:00
Daniel DiPaolo c318d5e384 Added the "action" command and associated tests. 2003-10-30 17:16:02 +00:00
Jeremy Fincher 9ddc7c75f5 Somehow messed this one up. 2003-10-30 05:40:39 +00:00
Jeremy Fincher 895ecf718f Fixed bug #832590. 2003-10-30 05:27:25 +00:00
Jeremy Fincher 06ce1bcb94 Added change. 2003-10-30 04:36:40 +00:00
Jeremy Fincher 51c5d53259 Added defaultplugin. 2003-10-30 03:08:52 +00:00
Jeremy Fincher f4e4233704 CanonicalNamed the toggles. 2003-10-30 02:38:11 +00:00
Jeremy Fincher 1280dbdc90 Added test, fixed a bug it found. 2003-10-30 02:33:04 +00:00
Jeremy Fincher 47a9d24434 Changed setconf to show what the value of the variable is if we don't give something to set it. 2003-10-30 02:13:12 +00:00
Jeremy Fincher 83e16b0d89 Fixed Google test. 2003-10-30 02:10:17 +00:00
Jeremy Fincher b14bc6e3b7 changed testEmptyNest a slight bit. 2003-10-30 00:15:17 +00:00
Jeremy Fincher 2ed2f6a5ff Used the wrong variable in assertNoResponse. 2003-10-30 00:12:39 +00:00
Jeremy Fincher 138c87f372 Changed to a ChannelPluginTestCase. 2003-10-30 00:12:22 +00:00
Jeremy Fincher 58cf080109 Fixed the nesting bug with testEval and testCalc. 2003-10-29 23:40:14 +00:00
James Vega afc74b96f0 Fix replacement of my/me not obeying word boundaries. Also created tests to
ensure it stays fixed.
2003-10-29 20:27:09 +00:00
Daniel DiPaolo 8cc9620a4b Fixed ordering by priority when requesting todos for a person (or self) 2003-10-29 20:12:02 +00:00
Daniel DiPaolo bef71df2ee Added a test to make sure I don't make that stupid mistake (not including "msg"
in irc.error) in the same place again.
2003-10-29 17:39:07 +00:00
Jeremy Fincher 50e1690fca Added test for empty nested command. 2003-10-29 16:09:20 +00:00
Daniel DiPaolo bfdbda625a Changed karma pluralization to use utils.pluralize() and fixed the tests to
avoid erroring due to ambiguous commands for 'stats' (since 'User' is also
loaded for the tests)
2003-10-29 07:46:49 +00:00
James Vega 535cdde13c Switched the togglesnarfers to the new Toggleable mixin 2003-10-29 06:06:56 +00:00
Daniel DiPaolo f0b850118b MoobotFactoids should be pretty dang close to finished now. Got the "_is_"
syntax working just fine.
2003-10-29 03:01:02 +00:00
Jeremy Fincher 5617dd6843 Added some commented out tests in case we decide to change the interface of ToggleDictionary. 2003-10-29 00:05:34 +00:00
Jeremy Fincher e49e5d02f4 Changes to ToggleDictionary. 2003-10-28 23:14:49 +00:00
Daniel DiPaolo 05f8d6a2f8 Added "todo change" and tests for it. 2003-10-28 18:43:43 +00:00
Daniel DiPaolo f9d97c91f5 Overhaul of Todo, somewhat. Made everyone's todos accessible by anyone, either
by id or by username.  Also, made it so todos are never deleted, just set to
inactive.
2003-10-28 17:40:41 +00:00
Daniel DiPaolo 2527f47cb6 Punctuation ("?!") is now stripped from keys before insertion into the db 2003-10-28 15:30:43 +00:00
Jeremy Fincher d174226c5c Added the ability to do hashed passwords. 2003-10-28 15:13:53 +00:00
Jeremy Fincher b63f2170e8 Added a saltHash function. 2003-10-28 14:20:00 +00:00
Jeremy Fincher b5f7bec137 Gave up on responding with *all* the nonCommands in a message. 2003-10-28 06:23:52 +00:00
Daniel DiPaolo 63c86ec366 Removed a test that was left over from the unified Dunno/MoobotFactoids module 2003-10-28 06:13:05 +00:00
Jeremy Fincher c2f179cd0d Fixed some bugs and cleaned up the test suite. 2003-10-28 05:49:31 +00:00
Daniel DiPaolo 084fe1854f More MoobotFactoids/Dunno separation fun and fixes 2003-10-28 05:31:51 +00:00
Jeremy Fincher eaa15860d8 Made sure commaAndify raises TypeError when it's given lists of non-strings. 2003-10-28 05:10:03 +00:00
Jeremy Fincher 9dc16ee761 Changed the most recent title test to use the proper URL. 2003-10-28 04:52:27 +00:00
Jeremy Fincher e0f617aead Beware the Dowloading! 2003-10-28 04:44:29 +00:00
James Vega ad022a88ed Added ToggleDictionary class and modified the tests to better model the
specification
2003-10-28 00:52:27 +00:00
Jeremy Fincher e03c65f753 Changed the whole handling of nonCommands and ambiguousCommands and whatnot. Now plugins can define an 'invalidCommand' method to be called on invalid commands. 2003-10-28 00:22:15 +00:00
James Vega 8ff643d540 Added a test for a website that causes @title to break 2003-10-27 22:32:56 +00:00
James Vega fbb37025dc plugins/Sourceforge.py: lots of cleanups to the code. Also changed how
togglesnarfer works.
test/test_Sourceforge.py: updated to follow the plugin changes
2003-10-27 20:24:32 +00:00
Jeremy Fincher 19f50ea8f2 Added test for toString output when a channel is specified. 2003-10-27 20:24:23 +00:00
Jeremy Fincher 206de8d7e0 Initial checkin; has test for ToggleDictionary. 2003-10-27 20:21:02 +00:00
Stéphan Kochen 5ace5a48ad Some fixes to Poll, removed delete command, added example. 2003-10-27 15:11:45 +00:00
Jeremy Fincher 9caaf8fef9 Loaded Misc in every test because that's just plain neceessary, what with replyWhenNotCommand and all. 2003-10-27 08:50:42 +00:00
Jeremy Fincher f2ab2576da Unloaded Misc before testing for no response. 2003-10-27 08:50:18 +00:00
Jeremy Fincher c150567565 Misc includes a version command and is now loaded by default, so I had to disambiguate the version test. 2003-10-27 08:48:04 +00:00
Jeremy Fincher fc11ff4f24 Handle properly the case where no matching commands were found. 2003-10-27 04:59:54 +00:00
Jeremy Fincher 7ba9a855bb Test for gkstats Strike. 2003-10-26 12:26:39 +00:00
Jeremy Fincher 0f45fe2c36 Fixed bug in testGreet. 2003-10-25 18:22:52 +00:00
Jeremy Fincher dd673bc706 Changed splitting on None to pull off the nick to splitting on ' '. 2003-10-24 23:13:51 +00:00
Jeremy Fincher f83b2fb135 Fixed Added at: format again. 2003-10-24 22:46:48 +00:00
Jeremy Fincher 3538f2c7b4 Made outfilter channel-specific. 2003-10-24 22:43:48 +00:00
Jeremy Fincher 5ae13a9422 Made the bot keep stats on himself. 2003-10-24 22:29:30 +00:00
Jeremy Fincher fa5ac0a885 Fixed test to match new output. 2003-10-24 22:08:15 +00:00
Jeremy Fincher 5ddd26cc69 Fixed a bugger in Misc.py. 2003-10-24 21:59:49 +00:00
Jeremy Fincher a666eddd16 Added RFE #827538 and fixed the help test. 2003-10-24 21:55:34 +00:00
Stéphan Kochen 9320ad0e4e Long live unicode! :D 2003-10-24 21:37:09 +00:00
Jeremy Fincher 388da451f2 Fixed failure (used testHelp) and added an encoding so Python doesn't complain. 2003-10-24 21:28:12 +00:00
Jeremy Fincher 094bdee30b Fixed bug with commandsOnStart not being called unless they were already canonical names. 2003-10-24 18:53:34 +00:00
Stéphan Kochen 8d9eb27a2f Initial version of the Poll plugin. Still needs some work. (RFE #715810) 2003-10-24 16:54:07 +00:00
Jeremy Fincher aa088ef6d9 Added memory reporting stuff to cpustats. 2003-10-24 13:38:55 +00:00
Jeremy Fincher c9a6f88a9e Updated for the new assertError/assertHelp. 2003-10-24 11:52:24 +00:00
Jeremy Fincher 83c0d344bf Changed to match the new behavior of assertError. 2003-10-24 11:47:00 +00:00
Jeremy Fincher 80777b942f Added assertHelp to remedy the fact that help strings now count as errors. 2003-10-24 11:44:44 +00:00
Jeremy Fincher f8da745d3f Updated to consider getting the help string an error in assertNotError and assertError. 2003-10-24 11:31:48 +00:00
Jeremy Fincher 660ba14e96 Fixed some failing test cases. 2003-10-24 11:03:43 +00:00
Jeremy Fincher 7d960ca4c6 Added PersistentDictionary.flush. 2003-10-24 09:57:54 +00:00
Jeremy Fincher b9434a23a6 Added PersistentDictionary. 2003-10-24 09:53:03 +00:00
Jeremy Fincher fa589ac423 Fix for bug #829353; added a test for the remove command. 2003-10-24 09:10:10 +00:00
Jeremy Fincher 300004ca62 Fix for bug #829300 2003-10-24 09:03:34 +00:00
Daniel DiPaolo 8229759769 Added 'setpriority' and tests. 2003-10-24 07:12:51 +00:00
Daniel DiPaolo 1b25a207bf Made MoobotFactoids case insensitive, and added tests to make sure that
case-insensitivity works.
2003-10-24 01:03:18 +00:00
Daniel DiPaolo f0574da59a Fixed the 'title' regexp to be non-greedy, in case there's a </title> tag
within the document itself.  Also put a test for this (which will hopefully be
a permanent link... not sure though)
2003-10-24 00:46:21 +00:00
Jeremy Fincher 68dd30cb8b Made stats default to the name of the person asking. 2003-10-23 20:59:51 +00:00
James Vega 6cae1b5ec4 Rewrote @insult and cleaned up the tests for all of FunDB so that they are
more deterministic
2003-10-23 12:35:43 +00:00
Jeremy Fincher dd40523197 Added the note id to the response to sendnote. 2003-10-23 09:16:20 +00:00
Jeremy Fincher 3944b00001 Updated. 2003-10-23 08:35:26 +00:00
Jeremy Fincher 10c7b7c0c0 Made sure no messages longer than 512 bytes every leave the bot. 2003-10-23 05:53:49 +00:00
Jeremy Fincher 8914543d35 Made <number> optional in convert. 2003-10-23 04:21:40 +00:00
Jeremy Fincher 65b87f822c Fixed bug in info; returned n+1 factoids when there were only n. 2003-10-23 04:17:18 +00:00
Jeremy Fincher e255ef2e68 Made local plugins to be ordered before global plugins. 2003-10-23 03:26:36 +00:00
James Vega 8a378601b3 As part of the renaming madness, removed any ^db prefix 2003-10-23 02:12:07 +00:00
Daniel Berlin 0b380f56fe Add --id option to geekquote, make it always allow multiline quotes 2003-10-22 22:05:34 +00:00
Jeremy Fincher 84690d56c9 Fixed escaping ValueError in soundex. 2003-10-22 20:09:45 +00:00
Stéphan Kochen 5c1fc0114d Added optional <id> argument to FunDB's excuse 2003-10-22 19:52:05 +00:00
Jeremy Fincher f7caf3f4fd Updated jeffk and lithp. 2003-10-22 19:43:38 +00:00
Jeremy Fincher 615ed5c34b Made sure the snarfer doesn't respond if there's no license key. 2003-10-22 17:43:04 +00:00
James Vega 89e5a4aa0e The snarfer wasn't quite fixed. Should be fixed for good this time. Also added
a test to make sure that a bad url isn't snarfed.
2003-10-22 15:58:07 +00:00
Jeremy Fincher 0ea2f22517 Made the environment slightly cleaner in PluginTestCase.setUp. 2003-10-22 15:47:44 +00:00
Jeremy Fincher 52bd33015c Made the environment slightly cleaner in PluginTestCase.setUp. 2003-10-22 15:38:43 +00:00
Daniel Berlin f967783949 Fix import as stuff, add URL snarfer, add test for URL snarfer 2003-10-22 15:20:06 +00:00
Jeremy Fincher 657df52ea3 Fixed search to put the word between stars if it doesn't have any globbing metachacters. 2003-10-22 15:15:50 +00:00
James Vega f57aba4c80 test/test_Souceforge.py: Removed the commented out tests
plugins/Sourceforge.py: Reverted the snarfer RE back to how it was, with a
slight improvement. This should make it catch more URLs without having all the
negative feedback the last RE produced.
2003-10-22 12:34:22 +00:00
Jeremy Fincher 689c464012 Made --from use ircutils.nickEqual. 2003-10-22 08:08:59 +00:00
Jeremy Fincher 13c10c899e Made outfilters stackable, added md5 and sha as outfilters. 2003-10-22 05:15:41 +00:00
Jeremy Fincher d28b015b52 Added an apropos command. 2003-10-22 04:32:29 +00:00
Jeremy Fincher e8284ca938 Fixed os.path lookups. 2003-10-22 03:55:03 +00:00
Jeremy Fincher e189603220 Fixed multiple-karma responses in the face of no results. 2003-10-22 03:40:00 +00:00
Jeremy Fincher 8ebef1ec6e Commented out most of the https tests; made the regexp that the snarfer matches on much less complex so it would match a new URL that it didn't match before (and won't be so complex to maintain, to boot). 2003-10-22 03:11:16 +00:00
Jeremy Fincher 9c2a8121ec Fixed bug in isNick. 2003-10-22 01:40:27 +00:00
Jeremy Fincher f09928e5cd Fixed RFE #827285. 2003-10-21 23:21:32 +00:00
Jeremy Fincher be97120c63 Made the hostmask command default to providing the hostmask of the person asking giving the command if no nick is provided. 2003-10-21 21:33:27 +00:00
Jeremy Fincher 232c634436 Made to load Owner by default. 2003-10-21 20:47:55 +00:00
Daniel DiPaolo 86b633cfe6 Fixed MoobotFactoids tests to jive with new "glob by default" behavior. 2003-10-21 20:23:59 +00:00
Jeremy Fincher ec7644fd2f Better message for failed assertNoResponse calls. 2003-10-21 20:17:29 +00:00
James Vega 7d3d501073 Added the Ebay plugin and tests 2003-10-21 17:36:57 +00:00
James Vega 8521e23bd4 Changed the name of the class to match the name of the plugin class 2003-10-21 17:36:07 +00:00
Jeremy Fincher 912fb78afb Made the last test pass. 2003-10-21 17:14:28 +00:00
Daniel DiPaolo d470488788 Fixed to accomodate changed plugin names ("MiscCommands" -> "Misc", e.g.) 2003-10-21 16:54:08 +00:00
James Vega 46907405d9 Switch Sf back to Sourceforge due to a conversation I wasn't aware of where
they reversed the naming-decision
2003-10-21 16:43:02 +00:00
Daniel DiPaolo d959f84b73 Got most of the dunno stuff in place. 2003-10-21 15:44:17 +00:00
Stéphan Kochen a67748ec5f Changed --id=<id> to just <id> in praise and lart. 2003-10-21 15:36:39 +00:00
Stéphan Kochen 69c214785b Fixed a small buggeeeeh where lart and praise work without a victim. 2003-10-21 14:34:41 +00:00
Stéphan Kochen 5b1026e1f9 Added --id=<id> to praise and lart (RFE #827075) 2003-10-21 13:23:26 +00:00
James Vega 71c79417e1 Modified the snarfer so that it recognizes sf.net URLs. Also updated the tests
to check that functionality.
2003-10-21 12:37:04 +00:00
James Vega e4909c5f42 Switch the Sourceforge plugin name to Sf 2003-10-21 12:20:23 +00:00
James Vega d2b993d2ec Fixed the tests to match the change in Debian command names 2003-10-21 12:19:30 +00:00
Jeremy Fincher 2175bd72f3 Oops, had one remaining ownercommands to deal with. 2003-10-21 06:19:26 +00:00
Jeremy Fincher baa9922f5f Sorted the names so they'd go in a predictable order. 2003-10-21 06:11:34 +00:00
Jeremy Fincher ab2bea589a Changed the names of the src/ plugins. 2003-10-21 06:03:57 +00:00
Jeremy Fincher 8150a36369 Moved to sandbox. 2003-10-21 05:47:01 +00:00
Jeremy Fincher 0349f7b3b1 Converted to use more generic command names. 2003-10-21 05:32:57 +00:00
Jeremy Fincher 48737f2085 Made command names more generic. 2003-10-21 05:19:54 +00:00
Jeremy Fincher 1037ade8cb Changed to more generic command names. 2003-10-21 05:11:53 +00:00
Jeremy Fincher 907979b284 Changed command names to be more generic. 2003-10-21 05:06:36 +00:00
Jeremy Fincher 9ca4050b9b Changed to use more generic names. 2003-10-21 04:50:03 +00:00
Jeremy Fincher 1bd48bfad5 Changed names to be more generic/consistent. 2003-10-21 04:22:54 +00:00
Jeremy Fincher 62f371d848 Converted to use generic names. 2003-10-21 04:03:25 +00:00
Jeremy Fincher 26d41dac6e Forgot to normalize in cases of type.method. 2003-10-21 03:22:29 +00:00
James Vega 0da50a6496 Added some actual Debian tests 2003-10-21 01:55:13 +00:00
Stéphan Kochen 1b1fe4408e setconf can now list conf variables and tell which type they are. 2003-10-20 23:22:40 +00:00
Jeremy Fincher 776bad5700 Fixed bug with pydoc logging.Logger. 2003-10-20 22:37:33 +00:00
Jeremy Fincher 4a8b627b2d Added the outfilter command, great fun. 2003-10-20 21:15:06 +00:00
Jeremy Fincher 33e6bf3e7d Removed the remainder of the Moobot plugin. 2003-10-20 20:26:27 +00:00
Daniel Berlin f1e915b617 Add new bugzilla module 2003-10-20 19:56:17 +00:00
James Vega ce88b052d0 Added @disablesfsnarfer and its test 2003-10-20 17:52:09 +00:00
Jeremy Fincher 3beb83f963 Added cleanConfDir and cleanDataDir to PluginTestCase. 2003-10-20 16:19:03 +00:00
Jeremy Fincher 3212ece69c Finished 'big change' to allow dispatching and stuff. 2003-10-20 11:34:21 +00:00
Jeremy Fincher 55ccb85542 Removed the syntax command; changed interface of callbacks.findCallbackForCommand to return a list of the matching callbacks; fix help to handle the prefixing of the plugin name. 2003-10-20 10:25:13 +00:00
Stéphan Kochen e12f69b7a2 Added conf.replyWithPrivateNotice and 'notice' command. 2003-10-20 10:10:46 +00:00
Jeremy Fincher b02cdef575 Added the option to turn on stderr logging. 2003-10-20 08:22:22 +00:00
Jeremy Fincher 0b6c2084cf Fixed handling of callbacks.ArgumentError in PrivmsgCommandAndRegexp. 2003-10-20 07:31:17 +00:00
Jeremy Fincher 2d56e7257e Made pydoc accept methods on builtin classes. 2003-10-20 06:43:59 +00:00
Jeremy Fincher c81170b362 Added a jeffk command. 2003-10-20 05:56:30 +00:00
Jeremy Fincher 3fb2795668 Moved the more useful Moobot commands to Fun. 2003-10-20 05:11:13 +00:00
Jeremy Fincher ef7cd08fdb Fixed testHelp to control its own destiny. 2003-10-20 03:55:26 +00:00
Jeremy Fincher 207ac96cdf Updated some tests somewhat. 2003-10-20 03:43:33 +00:00
Jeremy Fincher c75e124224 Updated some tests. 2003-10-20 03:26:02 +00:00
Jeremy Fincher fd39c5904d Wasn't setting world.startedAt. 2003-10-20 03:19:42 +00:00
Jeremy Fincher 5a8714db30 Updated tests. 2003-10-20 02:43:39 +00:00
Jeremy Fincher 8e9f4fae60 Renamed to test_Fun.py. 2003-10-20 02:37:09 +00:00
Jeremy Fincher 7b8322d6fd Changed the name back to News. 2003-10-19 21:10:56 +00:00
Jeremy Fincher 17e555c83d Changed the name back to Google. 2003-10-19 21:04:35 +00:00
Jeremy Fincher d21a99a37a Added stripping of prefix characters from help argument. 2003-10-19 19:19:47 +00:00
Jeremy Fincher 1eb2a387eb Changed ChannelTopic back to Topic. 2003-10-19 15:48:44 +00:00
Jeremy Fincher 4b4ae20155 Changed the Dict plugin to Dictionary. 2003-10-19 14:58:08 +00:00
Jeremy Fincher 08fa5e01a0 Changed the name of the FunCommands to Fun. 2003-10-19 14:53:34 +00:00
Jeremy Fincher 487ac95d80 Fix for a few exceptions escaping, bug #826177 in partciular. 2003-10-19 14:47:29 +00:00
James Vega 29a3264126 Added more information to the snarfer and cleaned up the related tests. 2003-10-18 14:19:06 +00:00
Jeremy Fincher aab016ddd1 Changed the name of the Google plugin to GoogleTools. 2003-10-18 13:25:12 +00:00
Jeremy Fincher f92d03e3a3 Changed the name of the Topic plugin to ChannelTopic. 2003-10-18 13:14:57 +00:00
Jeremy Fincher 492899997f Changed the name of the Topic plugin to ChannelTopic. 2003-10-18 13:14:57 +00:00
Jeremy Fincher 84fc2b1078 Changed the name of the News plugin to ChannelNews. 2003-10-18 13:04:29 +00:00
Jeremy Fincher 7ca40702bf Changed the name of the IMDB plugin to Movies. 2003-10-18 12:59:46 +00:00
James Vega e69d8a1f63 Added some tests to catch an re m// bug 2003-10-17 21:24:34 +00:00
Jeremy Fincher 2221acebde Hopefully fixed bug with empty word to define. 2003-10-17 21:15:48 +00:00
James Vega edab9e52b2 Added a scramble command and accompanying tests. 2003-10-17 17:03:25 +00:00
Jeremy Fincher 2ffe5a13dd Added depluralize function and fixed latent (untested) capitalization buggerishness. 2003-10-16 20:05:45 +00:00
Jeremy Fincher 121be3d9cf Made the constructor take dictionaries. 2003-10-16 19:40:14 +00:00
Jeremy Fincher f392696d98 Added TwoWayDictionary. 2003-10-16 19:36:33 +00:00
James Vega b2dd349235 Fixed all the #! lines to be consistent and a couple formatting issues with
the copyright
2003-10-16 14:53:42 +00:00
Jeremy Fincher 683ba63949 Fixed bug in IrcState.copy -- it wasn't doing deep copies. 2003-10-16 13:27:40 +00:00
Jeremy Fincher ee24accaf7 Fixed bug in default argument for IrcMsg.__init__ -- args should default to (), not None. 2003-10-16 13:11:46 +00:00
Jeremy Fincher b6185c4b33 Fixed problems with cpustats on Windows; at least now an error is reported. 2003-10-16 11:27:45 +00:00
Jeremy Fincher c40f5e6c59 Fixed problems with cpustats on Windows; at least now an error is reported. 2003-10-16 11:27:45 +00:00
Jeremy Fincher 3c676f844a Removed the OwnerCommands.say command; it wasn't useful enough. 2003-10-16 10:47:48 +00:00
Jeremy Fincher 06a45ff35a Eh, just made the formatting of assertActionRegexp different. 2003-10-16 10:46:04 +00:00
Jeremy Fincher 889e99cec6 Fixed an invalid irc.error in the part command. 2003-10-16 10:43:35 +00:00
Daniel DiPaolo 2ddb080a73 * added assertActionRegexp (semi-tested, not thoroughly tested) 2003-10-16 05:45:26 +00:00
Daniel DiPaolo aee5c6c18e * Finished up MoobotFactoids, I think. Added delete, augmentFactoids (foo is
also bar), and replaceFactoids (no foo is bar), as well as cleaning up some
  of the regexps that were there (we allow spaces in the factoids, dummy!), and
  also made the addFactoids regexp more accomodating to other phrases with the
  word "is" in them :)  Also, updated the tests for it, of course.
2003-10-16 05:27:01 +00:00
Daniel DiPaolo ea024def78 * Fixed some quoting issues in list*. Adopted the practice of repr()'ing all
factoid keys before displaying them (idea stolen from searchfactoids in
  Factoids).  Also fixed them in the tests as well as adding a test to insure
  that it's done right.
* Added the listkeys and listvalues commands.
2003-10-16 03:51:53 +00:00
James Vega fafa01659c Add some more tests to verify the depluralization efforts. Also split the http
and https snarfer tests into seperate functions.
2003-10-16 02:43:44 +00:00
Daniel DiPaolo ddfd7e10e1 * LOTS of updates to the MoobotFactoids test suite, parts of which aren't ready
yet, but the test targets should be pretty static from here on out, except
  adding new tests.
* Fixed up lock and coded unlock in MoobotFactoids (actually, factored the
  common code out into one helper function that each call).
* Added the changeFactoids (=~) portion.
* Changed the table structure again (should be the last time).  Locked_by was
  redundant if we're only going to let factoid creators lock/unlock.  Removed
  it.
2003-10-16 02:03:35 +00:00
Jeremy Fincher bd7f1f9389 Fixed the snarfer to allow https links. 2003-10-15 05:37:21 +00:00
Jeremy Fincher b6fb71d5a5 Added one minor thing so *all* unexpired news items aren't shown. 2003-10-15 05:30:02 +00:00
Jeremy Fincher ed3d757081 Made perlReToPythonRe always raise a ValueError instead of re.error. 2003-10-15 05:07:07 +00:00
Jeremy Fincher 388e17130d Oops, left some debugging prints in. 2003-10-15 04:49:47 +00:00
Jeremy Fincher 0ac86a778d Made sure ChannelPluginTestCase only reworks the message if its command is PRIVMSG. 2003-10-15 04:46:40 +00:00
Jeremy Fincher 6476e63f20 Added an unban command. 2003-10-15 04:46:19 +00:00
Jeremy Fincher db720ce810 Added verbose command line option. 2003-10-15 04:43:52 +00:00
Jeremy Fincher 6712760e5b Added test to make sure MODEs came before PRIVMSGs. 2003-10-15 03:19:16 +00:00
Jeremy Fincher 50d777e41f Added test to make sure unban worked. 2003-10-15 03:16:35 +00:00
Jeremy Fincher cb4b35704c Fixed timeouts. 2003-10-14 16:06:43 +00:00
Daniel DiPaolo 27796b01a3 * Updating MoobotFactoids tests to include more tests (testGetFactoid) 2003-10-14 15:17:08 +00:00
Jeremy Fincher 79ea3b1363 Moved bestuptime over to the Status plugin. 2003-10-14 06:39:31 +00:00
Jeremy Fincher e4c64ec2ca Made *everything* case-insensitive. 2003-10-14 05:54:11 +00:00
Jeremy Fincher b515336d14 Added commented-out test for log with multiple arguments. 2003-10-14 04:25:09 +00:00
Jeremy Fincher b692681e1c Found bug in utils.sortBy, mentioned by Tim Peters on Python-dev. Fixed, and tested. 2003-10-14 03:47:35 +00:00
Jeremy Fincher 8e37d2ae88 Made loadPluginModule case-insensitive. 2003-10-14 03:34:47 +00:00
Jeremy Fincher cfb4a0ba07 Added assertAction to PluginTestCase. 2003-10-14 00:41:11 +00:00
Daniel DiPaolo 3ae813674e * adding MoobotFactoids stuff as per jemfinch's request - though it's not quite
done yet
2003-10-13 21:22:16 +00:00
Jeremy Fincher f706191201 Added test for rpn 2 degrees and fixed rpn to pass it. 2003-10-13 04:54:57 +00:00
Jeremy Fincher 6c3e193b93 Fixed bug found by G-LiTe and added a test. 2003-10-13 03:47:33 +00:00
Jeremy Fincher a0fe5410c0 Fixed bug in perlReToReplacer where escaped slashes would stay in the output. 2003-10-12 13:11:53 +00:00
James Vega 2acf59d781 Added a urlsnarfer and the appropriate tests 2003-10-11 20:52:35 +00:00
Jeremy Fincher eb2db79d36 Fixed error messages in timeout cases to be more understandable, and added platform-independence in the -e option. 2003-10-11 17:34:52 +00:00
Jeremy Fincher 4cb7c18392 Fixed tests for all; added additional test cases for the empty sequence. 2003-10-11 12:31:45 +00:00
Jeremy Fincher 2140a8ac20 Fixed bug in test for variable. 2003-10-11 10:26:56 +00:00
Jeremy Fincher eb01a8e99d Removed pi -> 3.14 capability. 2003-10-11 03:37:38 +00:00
James Vega 3c5978a76e Added the Sourceforge plugin (which has the commands: bugs and rfes) and the
accompanying tests
2003-10-10 13:47:06 +00:00
Jeremy Fincher 7fe7c03d81 Removed the whole dealio with PRINTF and whatnot. 2003-10-10 06:03:02 +00:00
Daniel DiPaolo 9f2352fbea * Fixed searchtodo
* Wrote tests for Todo.py
2003-10-10 05:47:19 +00:00
Jeremy Fincher 88f33ed8dd Added test for ellipsisify. 2003-10-10 04:23:14 +00:00
Jeremy Fincher 18a8f81985 Fixed bug in list where _exec would show. 2003-10-09 18:06:46 +00:00
Jeremy Fincher 8df7fb6064 Added timeout and plugindir options. 2003-10-09 16:59:12 +00:00
Jeremy Fincher 30b054c6cb Fixed several bugs and added a test to make sure they don't happen again. 2003-10-09 16:38:14 +00:00
Jeremy Fincher 155aeebe42 Added dccIP and unDccIP. 2003-10-09 16:12:53 +00:00
Jeremy Fincher fc24f3ded1 Made seen case-insensitive. 2003-10-09 06:43:58 +00:00
Jeremy Fincher 8eed3f0982 Stupid __eq__ not being used in __ne__... 2003-10-09 05:46:35 +00:00
Jeremy Fincher ce0002f454 Made IrcString more efficient/better, added a test for it. 2003-10-09 05:34:44 +00:00
Jeremy Fincher aa7efcbad9 Fix for some bad tests; added support, fixed a long-latent bug that I thought was being tested for but wasn't. 2003-10-09 05:00:56 +00:00
Jeremy Fincher b63730975c Added a simple test. 2003-10-09 04:45:35 +00:00
Jeremy Fincher d376476462 Added karma tests. 2003-10-09 04:28:31 +00:00
Jeremy Fincher ae61e178ec Added reset() to smallqueue. 2003-10-09 03:59:36 +00:00
Jeremy Fincher b0f5674f91 Fixed bug #820262. 2003-10-08 22:38:27 +00:00
Jeremy Fincher 0d8ef3ee6d Tests for the whatis <x> <num> functionality. 2003-10-08 16:28:12 +00:00
Jeremy Fincher 8b7b4d97ac Added wildcard support, as per RFE #817309 2003-10-08 13:53:41 +00:00
Jeremy Fincher 52757421e0 Made sure debug.PRINTF was True. 2003-10-08 13:46:35 +00:00
Jeremy Fincher e0184c5422 Added some more error-checking to the addAlias method. 2003-10-08 01:26:10 +00:00
Jeremy Fincher 28fb603ca0 Added some more error-checking to the addAlias method. 2003-10-07 22:19:08 +00:00
Jeremy Fincher 1099ca0705 Changed whois to internic. 2003-10-07 21:38:11 +00:00
Jeremy Fincher f93b1e305a Optparsified, and added the -e option to exclude certain tests. 2003-10-07 14:09:13 +00:00
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