Valentin Lorentz
7edbb7b6c3
core: Fix tests using invalid hostmask.
2013-01-05 17:27:20 +01:00
Valentin Lorentz
e86768b61a
Misc: Fix testTell.
2013-01-04 22:01:36 +01:00
Valentin Lorentz
3dba9088b0
Merge remote-tracking branch 'supybot/master' into testing
...
Conflicts:
INSTALL
plugins/ChannelLogger/README.txt
plugins/ChannelStats/README.txt
plugins/Google/plugin.py
plugins/Google/test.py
plugins/Plugin/test.py
plugins/Web/test.py
setup.py
src/callbacks.py
src/ircdb.py
src/irclib.py
src/utils/str.py
test/test_irclib.py
2013-01-01 21:11:24 +01:00
Valentin Lorentz
93586d71f4
Add support for extended banmasks. Closes GH-105.
2012-12-02 19:04:48 +01:00
Valentin Lorentz
25855e5547
Fix crash when loading user with two nicks or more.
2012-11-07 19:00:41 +01:00
Valentin Lorentz
e9755a6486
Add fix missing in previous commit.
2012-11-04 01:28:24 +01:00
Valentin Lorentz
fba70d15bc
Add configuration variable conf.supybot.capabilities.private.
...
This variable is a list of capabilities that are considered as 'private',
ie. the bot won't tell anyone but admins that a user has it, nor will the
bot give a list of users with this capability.
2012-10-29 20:15:14 +01:00
Valentin Lorentz
8062d9592c
Change the minimal number of non-wildcard characters in hostmask from 8 to 3. Closes GH-276.
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-24 01:36:19 -04:00
Daniel Folkinshteyn
dfdfd00b04
core: make sure owner is never ignored. also simplify the logic flow in ignore checking.
...
Thanks m4v for the patch!
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-20 15:11:23 -04:00
James McCoy
cef93a6cfd
Use relative imports for all packages under the supybot namespace
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-09-17 22:12:11 -04:00
James McCoy
82ecf36fcd
Update my name/contact information
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-09-01 10:16:48 -04:00
Valentin Lorentz
45bf9db03c
Merge branch 'py3k-backport' into testing
...
This branch provides support of Python 3 via 2to3 (without dropping
Python 2 support).
2012-08-08 21:46:29 +02:00
Valentin Lorentz
4ffaff0638
Don't use utils.str.chars anymore.
2012-08-05 09:54:34 +02:00
Valentin Lorentz
b5c99b1ce1
Fix capability checks.
2012-08-04 15:57:51 +02:00
Valentin Lorentz
d52e501ae8
Use open() instead of file().
2012-08-04 13:13:16 +02:00
Valentin Lorentz
fa67967b09
And commands to add/remove GPG keys.
2012-08-02 09:21:58 +02:00
Valentin Lorentz
18b16d84ed
Change the minimal number of non-wildcard characters in hostmask from 8 to 3. Closes GH-276.
2012-04-04 15:08:49 +02:00
Daniel Folkinshteyn
a98b2df392
core: make sure owner is never ignored. also simplify the logic flow in ignore checking.
...
Thanks m4v for the patch!
2011-11-26 19:09:19 +01:00
Valentin Lorentz
e8814fc07a
Add checkCapabilityButIgnoreOwner converter
2011-01-27 19:32:43 +01:00
Jeremy Fincher
dd4bc64e32
Changed a few caches to use CacheDict to ensure no without-bound growth on caches.
2009-04-02 11:45:00 -05:00
James Vega
0d4ff7f3dc
ircdb.py: Use a more concise return statement
2009-03-11 13:37:27 -04:00
James Vega
a3e4fc5b1d
Change the modeline to use softtabstop instead of tabstop.
2006-02-11 15:52:51 +00:00
James Vega
9c34b231aa
src/ircdb: checkPassword should return false when password is None instead of trying to continue with the check.
2005-10-14 12:58:41 +00:00
Jeremy Fincher
14acfcafe4
Forgot a .split() that was causing the channel-database parsing to fail on bans.
2005-08-01 21:08:21 +00:00
Jeremy Fincher
5582e69268
Fixed ircdb.py to give full exception traces when unexpected exceptions occur.
2005-08-01 21:01:46 +00:00
Jeremy Fincher
5ce2baa2d2
It should be possible to identify without flushing.
2005-03-27 09:59:44 +00:00
James Vega
9971e991fe
Fix the modelines.
2005-03-23 20:07:45 +00:00
Kevin Murphy
5e5e2f3336
Fixed some typos
2005-02-23 17:40:44 +00:00
James Vega
90c000793d
utils.gen.* functions shouldn't explicitly be called since they're all in the utils namespace.
2005-02-15 13:57:57 +00:00
James Vega
68ef3d86a4
Fix some grammar in the help string.
2005-02-10 03:16:54 +00:00
Jeremy Fincher
e6beec2989
Removed some more unused imports.
2005-02-04 03:11:02 +00:00
James Vega
68d3b830da
Remove the use of format() in logger functions since they handle it natively.
2005-02-01 13:43:57 +00:00
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
Jeremy Fincher
c96b0f6ca9
Reduced several log.infos to log.debugs.
2004-01-19 20:26:20 +00:00
Jeremy Fincher
6ca78924f3
HUUUUUUUUGE Configuration change.
2004-01-18 07:58:26 +00:00
Jeremy Fincher
1c03464fd9
Huge commit to finish refactoring of replies.
2004-01-08 23:03:48 +00:00
Jeremy Fincher
7b983bc921
Added some better logging.
2003-12-16 20:56:05 +00:00
Jeremy Fincher
890d2a5f4e
Added an iteritems to ChannelsDictionary and made it into an IterableMap.
2003-12-03 05:26:14 +00:00
Jeremy Fincher
b39e1237fc
Added __iter__ to UsersDB for a cleaner interface.
2003-12-01 23:24:25 +00:00
Jeremy Fincher
e34d9deecd
Fixed RFE #851183 , ircdb.users.numUsers.
2003-12-01 23:17:26 +00:00
Jeremy Fincher
24f95e6a75
Small efficiency/readability fixes.
2003-12-01 12:04:02 +00:00
Jeremy Fincher
48166f4895
Huge update to the logging infrastructure.
2003-11-26 18:21:12 +00:00
Jeremy Fincher
a4284e7924
Added __revision__ strings.
2003-11-25 08:38:19 +00:00
Jeremy Fincher
a966513c7d
Changed commit behavior of UsersDB and ChannelsDictionary to commit on setUser/delUser/newUser and setChannel, respectively.
2003-11-24 22:32:33 +00:00
Jeremy Fincher
9a7de79467
Made removeHostmask remove all the matching hostmasks.
2003-11-19 15:35:01 +00:00
Jeremy Fincher
dc93f865db
Changed some maps/filters to imaps/ifilters for efficiency reasons (I was bored, basically).
2003-11-15 04:46:09 +00:00
Jeremy Fincher
944ef33dce
Fixed the reloading sets.Set bug more cleanly.
2003-11-03 23:23:28 +00:00
Jeremy Fincher
aae6f52c9e
Fixed bug with reloading of sets module.
2003-11-03 23:10:29 +00:00
Jeremy Fincher
d174226c5c
Added the ability to do hashed passwords.
2003-10-28 15:13:53 +00:00
Jeremy Fincher
44227181b7
Converted ChannelsDictionary to use a PersistentDictionary.
2003-10-24 09:58:51 +00:00
Jeremy Fincher
9eff6d997e
Removed/commented out some debug.printfs.
2003-10-12 12:42:43 +00:00