Commit Graph

109 Commits

Author SHA1 Message Date
James Vega
de89bf0265 Update usage of utils.str functions. 2005-01-31 14:52:27 +00:00
James Vega
28cb5abc65 Update usage of functions in utils.gen. 2005-01-31 13:06:43 +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
5019d10a1b Updated license years. 2005-01-19 13:33:05 +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
James Vega
f2a34f78c8 We should assert after we call the callable. 2005-01-06 15:55:09 +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
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
James Vega
787625c757 Let's report the correct value for the asserts that failed 2004-10-29 12:46:39 +00:00
Jeremy Fincher
afff2734f4 Made the asserts more verbose. 2004-10-29 00:45:56 +00:00
James Vega
ca0c0fad49 Change user.hostmasks to an IrcSet 2004-10-26 17:37:44 +00:00
James Vega
cbd5abbab7 A bunch more %r -> %s conversions as well as wrap updates, new policy for
Channel.voice and some bug fixes for Debian
2004-10-25 22:59:03 +00:00
Jeremy Fincher
04a6fb1d4d Fix for jamessan's bug. 2004-10-22 16:58:11 +00:00
Jeremy Fincher
a238ed6298 Fixed TODO #1047283. 2004-10-22 06:21:34 +00:00
Jeremy Fincher
1958a76897 Some XXX comments, a little update here and there relating to users always having an id. 2004-10-15 11:21:50 +00:00
Jeremy Fincher
b2fbbef197 Fixed bug with duplicate hostmasks. 2004-10-09 04:57:16 +00:00
James Vega
4557b867fe Prevent people from adding hostmasks that don't explicitly match other users'
hostmasks but will match when you check hostmaskPatternEqual aka bug #1043045
2004-10-08 13:59:45 +00:00
Jeremy Fincher
550bcdad5d Fix for bug #1036861. 2004-10-03 09:21:06 +00:00
Jeremy Fincher
f8375acdad Fixed not to raise some exceptions during testing. 2004-09-29 18:53:23 +00:00
Jeremy Fincher
3dec784447 A whole lot more asserts and an isCapability predicate. 2004-09-28 07:17:18 +00:00
Jeremy Fincher
816f494d8c Changed two warnings to errors. 2004-09-22 22:24:34 +00:00
Jeremy Fincher
f9a432c9ec Let's make sure we give our users an id attribute. 2004-09-21 18:37:45 +00:00
James Vega
50973a10fb Remove #! lines. 2004-09-20 03:01:50 +00:00
Jeremy Fincher
8fd64a6325 Fixed the issues with backup files that were the exact same as the original. 2004-09-16 20:00:41 +00:00
Jeremy Fincher
4fec6def71 Allow multiple authentication. 2004-09-13 02:01:00 +00:00
Jeremy Fincher
ee70224aa3 Changed callCommand to give a name rather than a method; added invalidCommand throttling, ctcp throttling, and whole bunch of other crap. 2004-09-08 23:34:48 +00:00
Jeremy Fincher
f4c384a274 Changed supybot.capabilities to an ircdb.CapabilitySet instead of a ircutils.IrcSet. 2004-08-27 04:48:16 +00:00
Jeremy Fincher
fbb348b6e7 Copyright updates. Again, more is left to be done, but this is my part. 2004-08-23 13:14:06 +00:00
Jeremy Fincher
0f598271dc Speeling fixes. 2004-08-18 23:15:27 +00:00
Jeremy Fincher
b6ba7955ac With some clearer thinking, I believe this is the proper implementation of tmpDir. If there's something wrong with it, send me a note or write a test and it'll be fixed. 2004-08-01 12:46:03 +00:00
Jeremy Fincher
823bfb040f Added utils.AtomicFile and converted our uses of 'w' to it. This rocks. 2004-07-31 10:21:07 +00:00
Jeremy Fincher
9250d3ab32 Tons of differences, moved some registry values around, also changed some internal attributes of registry thingies. 2004-07-31 05:00:43 +00:00
Jeremy Fincher
f9c61271ea w00, less path mungingEXCLAIMEXCLAIM 2004-07-24 05:18:26 +00:00
James Vega
315810d08e yay! no more stray whitespace 2004-07-21 19:36:35 +00:00
Jeremy Fincher
4258435d98 Some users might unidentify without being identified. 2004-04-08 10:47:32 +00:00
Jeremy Fincher
a4b4c2101c Added supybot.databases.users.hash. 2004-04-05 09:23:40 +00:00
Jeremy Fincher
9dc2618232 Fixed to use supybot.databases.users.timeoutIdentification correctly. 2004-03-25 12:16:37 +00:00
Jeremy Fincher
68eb84c0bb Better error handling on open. 2004-02-14 01:02:53 +00:00
Jeremy Fincher
1a62fed0b6 Woohoo, fixed the bug with register in tests! 2004-02-13 09:01:21 +00:00
Jeremy Fincher
96eecfd477 Fixed most tests and made some stricter policy changes, as well handled the case of getUserId returning several hostmasks a little better. 2004-02-08 09:25:14 +00:00
Jeremy Fincher
0ab86752a7 *Really* fixed supybot-adduser now. 2004-02-07 22:23:12 +00:00
Jeremy Fincher
9f33b4c1bd Oops, didn't give the appropriate namespace. 2004-02-04 04:56:37 +00:00
Jeremy Fincher
5d98b1a5bc Converted ignores to a separate file, rather than a registry value. 2004-02-04 00:39:52 +00:00
Jeremy Fincher
40e3c861c0 Forgot to re-add the user/channel databases to the flushers. 2004-02-03 04:10:22 +00:00
Jeremy Fincher
3bd50b1d6a Fixed testing, w00t! 2004-02-03 03:07:54 +00:00
Jeremy Fincher
e8e5e11a51 Changed command to badCommand. 2004-02-02 03:24:03 +00:00
Jeremy Fincher
b119f94ed4 Converted to a new user/channel database format. 2004-02-02 02:56:16 +00:00
Jeremy Fincher
651db477ae No need for user 0 now; just change it to None. 2004-02-02 00:27:14 +00:00
Jeremy Fincher
4b1083931d Changed channel capabilities to use commas. 2004-01-20 21:53:13 +00:00