Commit Graph

1404 Commits

Author SHA1 Message Date
Jeremy Fincher
978cf65453 Added an email converter. 2005-02-01 07:08:13 +00:00
Jeremy Fincher
307f50137b Abstracted out an assertError method for testing specs. 2005-02-01 07:07:35 +00:00
Jeremy Fincher
2b6994428e Fixed a bug that was introduced in nItems. 2005-02-01 07:06:36 +00:00
Jeremy Fincher
2840aeda1e Added tests for dynamicScope and fixed a bug that made it all but useless. 2005-02-01 07:05:42 +00:00
Jeremy Fincher
65893c8e3c Added emailRe to utils.net. 2005-02-01 06:34:58 +00:00
James Vega
afc3c3f94a Fix some calls to pluralize to not use the extra argument. Also updated the pluralize tests. 2005-01-31 15:59:44 +00:00
James Vega
ec045afd9c Removed extraneous whitespace, unused imports, and converted some sets.Set() calls to set(). 2005-01-31 15:24:36 +00:00
James Vega
0fde2393e6 Update usage of utils.iter functions. 2005-01-31 15:22:48 +00:00
James Vega
28cb5abc65 Update usage of functions in utils.gen. 2005-01-31 13:06:43 +00:00
Jeremy Fincher
381a42d863 Added an "irc" argument to callbacks.Privmsg.__init__, so now plugins get an Irc on instantiation. 2005-01-29 19:16:29 +00:00
Jeremy Fincher
a19a979499 Robustified and improved utils.str.format a bit; added a simple test. 2005-01-28 15:23:18 +00:00
Jeremy Fincher
34f1fe6562 Swapped the argument order for nItems *again*. 2005-01-28 15:17:26 +00:00
Jeremy Fincher
e1fe232e9b Converted commands.py to use the new utils.web instead of webutils; fixed a bug in the httpUrl converter which rejected https protocols. 2005-01-28 14:51:25 +00:00
Jeremy Fincher
c08d435267 Fixed bug in irclib.IrcState's handling of KICK messages; they wouldn't remove the channel if the bot was kicked from it. 2005-01-28 13:58:59 +00:00
Jeremy Fincher
5fd6bbb52d Completely restructured our utils modules.
Tons of changes.  Here's the summary of things that matter most:

* There is no more supybot.fix.
* There is no more supybot.webutils; now there is supybot.utils.web.
  * It's no longer webutils.WebError, but just utils.web.Error.
* You shouldn't import itertools, ideally, but instead import utils.iter.
* No more using imap/ifilter in commands unless absolutely necessary.  It's
  premature optimization and annoying.
* utils.str.format isn't quite ready yet, but will be soon.  That'll be the
  next big thing to fix in our code.
2005-01-27 06:59:08 +00:00
Jeremy Fincher
7fb3b21d94 Removed src/privmsgs.py and all the accompanying crap. 2005-01-27 05:42:36 +00:00
Jeremy Fincher
74b9a3c702 Moved eachSubstring to be a nested function; we don't use it anywhere else. 2005-01-26 14:41:42 +00:00
Jeremy Fincher
895cd3e48e Resurrected the test suite with the new supybot-test program and RCS. 2005-01-23 19:42:25 +00:00
Jeremy Fincher
3d3b1498fe Changed copyright years on test files 2005-01-24 21:27:34 +00:00
Jeremy Fincher
8ca625d339 Initial import. 2005-01-19 13:14:38 +00:00
James Vega
dbfec8afb9 Add supybot module 2007-04-22 20:10:26 +00:00
Jeremy Fincher
fdeae5c022 Better error-checking. 2005-01-13 17:48:47 +00:00
Jeremy Fincher
493aa57d8e Added a couple asserts. 2005-01-12 02:47:35 +00:00
Jeremy Fincher
a4cec8c8be Added Topic.replace. 2005-01-10 22:26:46 +00:00
James Vega
629e459983 Add Note.search and change the wording for listing private note ids. 2005-01-07 04:42:27 +00:00
James Vega
d85e56f1d2 Make sure we utils.htmlToText the aspnSnarfer, otherwise we can get nasty
replies because of the embedded \n.
2005-01-05 18:38:17 +00:00
James Vega
f31fec5681 Fix an exception when using the --to option for Note.list and add tests
for the --to and --from options.
2005-01-05 18:36:46 +00:00
James Vega
06307abee1 Make Observer remember the active observers. Only allow admins to add/remove
observers.  Make sure we remove the observer from the active lists when remove
is called.
2005-01-04 23:27:26 +00:00
James Vega
1f4bef43ac Fix a test failure 2005-01-04 18:52:10 +00:00
James Vega
d59310603c eBay changed their expired auction message 2005-01-04 18:50:51 +00:00
James Vega
1aa615850b Fix a bug that occurs when an optional group is not matched. 2005-01-04 16:57:57 +00:00
James Vega
0d954c9354 Fix some test failures 2005-01-04 16:41:26 +00:00
James Vega
6ef2bbcc77 Fix some test failures 2005-01-04 16:35:56 +00:00
Jeremy Fincher
3736f6d582 I wrote this to show someone an example of a test, but figured I'd commit it since it's written. 2005-01-04 03:46:55 +00:00
James Vega
b11c4f1390 Update Debian.bug for a slight website change. 2005-01-04 03:28:33 +00:00
James Vega
3cb46ab765 Add a feedName converter 2005-01-03 18:45:07 +00:00
James Vega
a4545d45a7 Fix bug #1093594, UnboundLocalError 2004-12-31 04:18:02 +00:00
Kevin Murphy
9246b169e1 Updated tests to make them all work properly now... (finally) 2004-12-30 08:34:18 +00:00
James Vega
1f8ed8ebe7 Remove a debugging timeout 2004-12-30 05:52:52 +00:00
James Vega
034fb54bd2 Fleshed out Observer.remove. Added 'active' status to Observer.info 2004-12-30 01:05:12 +00:00
James Vega
fd6f4e7e24 Fix a bug where we weren't catching the end of the URL appropriately 2004-12-29 22:30:54 +00:00
James Vega
cb42006490 Better emulation of Infobot wrt overwriting factoids and missing factoids. 2004-12-29 16:28:46 +00:00
Kevin Murphy
41103b1fa7 Test for fix for bug #1092462 2004-12-29 06:42:01 +00:00
James Vega
c93edfc42e Change Infobot's *Unaddressed* config variables to be unaddressed.* and add
unaddressed.replyExistingFactoid.
Began Infobot refactoring and changing the dbs so that they can be channel
specific.  This is likely still broken.
2004-12-29 06:18:43 +00:00
James Vega
7217b01cd2 Tag addressed messages with the results of callbacks._addressed. Also,
reorder the calling of addressedRes and res in PrivmsgCommandAndRegexp so
that addressedRes are run first.
2004-12-29 06:15:19 +00:00
Jeremy Fincher
11c12e9062 Fixed bug #1091927, Topic.insert was doing the same thing as Topic.add. 2004-12-28 01:10:31 +00:00
Jeremy Fincher
6002089619 Changed some non-public checkCapability methods to be prefixed with an underscore. 2004-12-27 06:58:26 +00:00
Jeremy Fincher
c350baa2ae Added Topic.separator. 2004-12-21 13:09:41 +00:00
Jeremy Fincher
a82e806a2d Removed supybot.databases.users.hash. Now we always hash by default, though the configuration file still supports unhashed passwords (useful for allowing owners to change passwords by editing the file). 2004-12-20 19:47:53 +00:00
Jeremy Fincher
40f63858b0 Make apropos not case-sensitive. 2004-12-20 18:51:05 +00:00
Jeremy Fincher
84e2072903 Fixed some bugs related to the new TestPlugin. 2004-12-20 18:49:35 +00:00
Jeremy Fincher
c9360c3990 I wonder what made my commit that in the first place. 2004-12-20 16:41:37 +00:00
Jeremy Fincher
1a7333aef0 Added another test, commented out one that doesn't apply anymore. 2004-12-19 01:09:42 +00:00
Jeremy Fincher
67d0321a2c Added tests for apply and shuffle. 2004-12-18 21:23:23 +00:00
James Vega
cd4f073ad5 Fix bug #1087369, WordStats is case sensitive 2004-12-18 04:06:53 +00:00
Jeremy Fincher
596abe02f0 Added a TestPlugin with eval. 2004-12-17 16:25:18 +00:00
James Vega
e89e5402ca Add a test for dynamic.channel 2004-12-17 06:33:45 +00:00
James Vega
3b2ef3d88f Add plugins.getChannel 2004-12-17 05:18:21 +00:00
Jeremy Fincher
cc084d2535 Removed some XXXes and allowed other separators than /. 2004-12-16 09:22:39 +00:00
Jeremy Fincher
5d37d71afb Test is too tight, commented out until an appropriate test can be devised. 2004-12-16 09:18:36 +00:00
Jeremy Fincher
eb03f94f07 Moved eval/exec commands to sandbox/Debug.py, removed allowEval option. 2004-12-16 07:13:14 +00:00
James Vega
cee0dc3463 wrapify. I don't feel like converting the db properly (i.e., using
data/Todo/<user>.db), so I'll leave alone the current db.
2004-12-15 18:43:09 +00:00
James Vega
cedd6a2b59 Add some Raise=True and a test for multiple replies from Misc.hostmask. 2004-12-15 17:54:33 +00:00
James Vega
c8af5c886b wrapified 2004-12-15 16:37:26 +00:00
Jeremy Fincher
41ad8c13ad Added limited dynamic scoping. 2004-12-13 19:31:36 +00:00
James Vega
7d66c9e6a4 Finish implementing Limiter and add tests. 2004-12-13 13:54:44 +00:00
Jeremy Fincher
3b6d40bb24 Added a test to make sure something worked. 2004-12-13 05:29:05 +00:00
Jeremy Fincher
1932ed4d02 Slight bugfix in isCtcp. 2004-12-10 08:48:24 +00:00
Jeremy Fincher
6d7b0d7761 Ok, so I'm ridiculously anal... 2004-12-10 07:10:06 +00:00
James Vega
78685a323f Fix a test failure. 2004-12-10 04:08:36 +00:00
James Vega
b8da3624b3 Fix test failures. 2004-12-10 03:38:49 +00:00
Jeremy Fincher
5466544350 Fix for a bug in the short timeElapsed. 2004-12-08 20:27:59 +00:00
Jeremy Fincher
407952f5a0 Fix in a test. 2004-12-08 16:53:58 +00:00
Jeremy Fincher
e4f15ae1b3 Cleaner implementation. 2004-12-08 07:45:24 +00:00
James Vega
bda9e9144c Add Debian.debianize. Add a try:except for webutils usage. Use Raise=True
in a few more places.
2004-12-08 03:19:07 +00:00
James Vega
59b561b0af Add Markov.stats. Add some elucidating comments. Remove incomplete
SqliteMarkovDB and unused MarkovDBInterface
2004-12-08 03:10:03 +00:00
Jeremy Fincher
5822a249e7 Slight improvement to a test. 2004-12-07 06:44:45 +00:00
Jeremy Fincher
e2e5acbac0 Updated for only allowing single channels. 2004-12-07 04:52:46 +00:00
Jeremy Fincher
6e712bb3db Proper ignoring of deprecated plugins. 2004-12-07 04:16:23 +00:00
James Vega
4ba005ddf6 Update QuoteGrabs to use db abstraction. Hopefully fix the mxCrap thing
for good.  This update should also fix the problem that had existed with
QuoteGrabs and databases.plugins.channelSpecifc=False
2004-12-03 15:41:08 +00:00
Jeremy Fincher
3f9c699ea2 Fix for bug in IrcMsg.__eq__. 2004-12-03 08:08:07 +00:00
James Vega
12fa1096db Convert to wrap and simplify Admin.join (no longer accept multiple channels) 2004-11-30 05:24:20 +00:00
James Vega
c87788dc62 Make sure state.channel is carried over when we call State.essence. Also,
add continueOnError option to any().
2004-11-30 05:15:41 +00:00
Jeremy Fincher
01513bcb95 Fixed a couple test failures. 2004-11-30 04:49:21 +00:00
James Vega
7eed44eef7 Converted Random to wrap. Added a long converter to assist this. 2004-11-28 02:23:59 +00:00
Jeremy Fincher
877c6ee9a8 Added test, but didn't find the bug I wanted. 2004-11-24 12:01:03 +00:00
James Vega
fda6b572a7 Make sure we reply if all of our fallbacks fail. 2004-11-16 00:55:00 +00:00
Jeremy Fincher
a0e863deef Fix for bugz0r. 2004-11-11 15:25:17 +00:00
Jeremy Fincher
3f93307518 Fixed bug #1062631. 2004-11-09 12:29:20 +00:00
Jeremy Fincher
d280387518 rest should require args unless indicated otherwise. Currently, we can't indicate otherwise, but that's because we haven't had a need for it yet. 2004-11-08 20:51:39 +00:00
Jeremy Fincher
54db030707 Added test, changed to use commands.wrap. 2004-11-08 20:03:42 +00:00
Jeremy Fincher
6341b26755 Fixed a failing test, showed a results number in search, and added to our standardSubstitute for Dunnos. 2004-11-08 17:02:02 +00:00
Jeremy Fincher
3f1dfa09c0 UPdated. 2004-11-08 16:54:45 +00:00
Jeremy Fincher
ced5caa68f This never had any tests anyway, and now its plugin is gone. 2004-11-06 19:27:35 +00:00
Jeremy Fincher
3e8622abce Initial checkin. 2004-11-06 19:26:05 +00:00
Jeremy Fincher
964fa95bfd Removed standardSubstitute test. 2004-11-06 19:21:15 +00:00
Jeremy Fincher
58b3268bdd Have exnToString handle exceptions whose str representation is empty. 2004-11-04 06:01:17 +00:00
Jeremy Fincher
040888405c Refactoring of error-related configuration variables. 2004-11-04 05:34:24 +00:00
Kevin Murphy
3f2f500dc4 ToDo #1046877 : Added Enable/Disable commands 2004-10-28 06:37:39 +00:00
Jeremy Fincher
d6949c95c1 Fixed a bug in the test. 2004-10-27 07:51:23 +00:00