Valentin Lorentz
2ceb60762e
Seen: Don't internalize IrcString (again).
2020-06-05 00:41:18 +02:00
Valentin Lorentz
847e51a7ec
plugins: Fix name mismatch of typeSubstitution in getCommandHelp.
...
Bug introduced in 4046a1b201d062257fb6f90d67d0742710f2931a.
2020-05-27 21:19:09 +02:00
Valentin Lorentz
8b9ac3540d
plugins: Fix AttributeError in getCommandHelp.
...
Introduced in commit 4046a1b201d062257fb6f90d67d0742710f2931a.
2020-05-27 20:30:39 +02:00
Valentin Lorentz
2682e4cb48
Seen, ChannelUserDictionary: Internalize channel names.
...
They are not many of them, but they are used a lot so they take
up a surprising amount of memory.
2020-05-17 21:09:00 +02:00
Valentin Lorentz
ddce09d257
Rename supybot.reply.format.databaseRecord to supybot.replies.databaseRecord.
2020-05-15 19:08:43 +02:00
Valentin Lorentz
a54db1034f
Fix Python 3.4 support.
2020-05-14 21:49:56 +02:00
Valentin Lorentz
566920070c
Fix regressions in 4046a1b201d062257fb6f90d67d0742710f2931a.
2020-05-14 19:00:31 +02:00
Valentin Lorentz
7444e656d8
supybot.reply.format.databaseRecord: Add $nick
2020-05-14 18:56:20 +02:00
Valentin Lorentz
4046a1b201
ChannelIdDatabasePlugin: Make the format of showRecord() configurable.
2020-05-14 18:45:04 +02:00
Valentin Lorentz
9e57913674
plugins/__init__.py: internationalize strings.
2020-05-14 18:42:22 +02:00
Valentin Lorentz
0fccea30ce
Import MutableMapping and MutableSet from collections.abc.
...
Aliases in collections itself are removed in 3.8.
2020-01-09 01:11:12 +01:00
Valentin Lorentz
83114e5fbd
src/callbacks.py: use network-specific values.
...
Closes GH-1393
2019-12-05 21:51:25 +01:00
Valentin Lorentz
bc663b164c
Nicer error message in getChannel/makeChannelFilename when channel is None.
2019-11-15 21:14:46 +01:00
Valentin Lorentz
88524beada
ChannelLogger + Karka + all DB plugins: Sanitize channel names when used in filenames.
2019-09-06 20:42:13 +02:00
Valentin Lorentz
1f400e4020
Fix Python 3.7 support, and run Travis tests on 3.7.
...
Travis' "nightly" python is actually older than 3.7.0 (3.7.0a4+)
2018-09-10 00:57:04 +02:00
James Lu
5ee15c38bb
ChannelIdDatabasePlugin: limit --regexp to trusted users
...
Overcomplicated regexps can freeze the bot, an issue which is amplified as a database (e.g. for quotes) grows. Closes #855 .
2017-09-29 16:31:56 -07:00
Valentin Lorentz
14180a24ec
Fix error when printing the 'NoSuitableDatabase' error.
2016-11-05 08:51:29 +01:00
Valentin Lorentz
52517c8ca6
Open CSV files in binary mode on Python 2. Closes GH-1230.
2016-04-13 17:56:03 +02:00
Valentin Lorentz
49ff291f61
Use utf-8 to encode files by default.
...
Should fix this bug in Seen:
Traceback (most recent call last):
File "C:\Program Files\Python34\lib\site-packages\supybot\world.py", line 121, in flush
f()
File "C:\Program Files\Python34\lib\site-packages\supybot\plugins\__init__.py", line 271, in flush
writer.writerow(L)
File "C:\Program Files\Python34\lib\site-packages\supybot\utils\file.py", line 172, in write
return self._fd.write(data)
File "C:\Program Files\Python34\lib\encodings\cp1250.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u25c4' in position 33: character maps to <undefined>
2015-12-23 15:22:19 +01:00
Valentin Lorentz
be118c3338
Remove use of fix_dict fixer.
2015-08-08 23:08:49 +02:00
James Lu
8e51209c3f
Fixes to ChannelIdDatabasePlugin as pointed out by @ProgVal
...
- Quote: factorize tests
- Make supybot.databases.plugins channel specific
2015-06-28 14:36:27 -07:00
James Lu
562fa14706
ChannelIdDatabasePlugin: allow unregistered users to use commands
...
This adds a new configuration variable, supybot.databases.plugins.requireRegistration, which defaults to True for maximum security.
2015-04-15 18:01:06 -07:00
GLolol
ad0d4481aa
plugins/__init__.py: remove some unused? imports
2014-12-26 16:44:42 -05:00
Valentin Lorentz
ca419f6485
Continue accelerating the 2to3 step (remove fix_reduce, fix_renames, fix_repr, fix_set_literal, fix_standarderror, fix_sys_exc, fix_throw, and fix_tuple_params).
2014-01-20 16:04:53 +01:00
Valentin Lorentz
bb7db3ab21
Continue accelerating the 2to3 step (remove fix_except).
2014-01-20 15:49:15 +01:00
Valentin Lorentz
2fda69b4d6
Continue accelerating the 2to3 step (remove fix_raise).
2014-01-20 15:43:55 +01:00
Valentin Lorentz
40675ffdfa
Merge remote-tracking branch 'supybot/master' into testing
...
Conflicts:
plugins/Admin/plugin.py
plugins/BadWords/config.py
plugins/Filter/plugin.py
plugins/Google/plugin.py
plugins/Math/plugin.py
plugins/Misc/plugin.py
plugins/Note/plugin.py
plugins/RSS/plugin.py
plugins/Seen/test.py
plugins/ShrinkUrl/config.py
plugins/ShrinkUrl/plugin.py
plugins/ShrinkUrl/test.py
plugins/Status/plugin.py
plugins/String/config.py
plugins/String/plugin.py
plugins/Time/plugin.py
plugins/Todo/plugin.py
plugins/Web/plugin.py
plugins/__init__.py
scripts/supybot-botchk
setup.py
src/__init__.py
src/callbacks.py
src/commands.py
src/conf.py
src/drivers/Socket.py
src/ircdb.py
src/irclib.py
src/ircutils.py
src/questions.py
src/registry.py
src/schedule.py
src/test.py
src/utils/file.py
src/utils/gen.py
src/utils/net.py
src/utils/web.py
src/world.py
2013-08-24 11:28:29 +02:00
Valentin Lorentz
d714909576
Use non-sexist language in strings and comments.
2013-03-08 20:34:31 +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
James McCoy
b5eac0994a
Call unqualified process/regexp_wrapper, since commands exports them now.
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-24 00:26:51 -04:00
Daniel Folkinshteyn
18ec61842c
Secure some more commands which take a regexp from untrusted user input.
...
Namely todo.search, note.search, dunno.search.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-10-20 15:06:43 -04:00
Valentin Lorentz
4d1a7ea32a
Display more explicit error if python-sqlite3 is not installed.
2012-10-13 08:54:33 +00: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
124e292f1f
Catch sort errors in ChannelUserDB.
...
In case the dictionnary has both integers and strings as keys, items.sort() raises a TypeError.
2012-08-05 15:19:20 +02:00
Valentin Lorentz
36812798fb
Make ChannelUserDictionary subclass collections.MutableMapping instead of deprecated UserDict.DictMixin.
2012-08-04 21:16:00 +02:00
Valentin Lorentz
d52e501ae8
Use open() instead of file().
2012-08-04 13:13:16 +02:00
Daniel Folkinshteyn
3fa45b3b5f
Secure some more commands which take a regexp from untrusted user input.
...
Namely todo.search, note.search, dunno.search.
Conflicts:
plugins/Note/plugin.py
plugins/Todo/plugin.py
src/version.py
2011-08-13 01:59:18 +02:00
Daniel Folkinshteyn
f71464adb3
This merges an old branch i had for sqlite3 factoids+moobotfactoids.
...
fix up moobotfactoids+factoids to use the sqlite text_factory=str,
also fixed up a test for factoid search, since it now sorts keys alphabetically.
2011-02-24 20:55:24 +01:00
James Vega
c9329303d3
Updated ChannelIdDatabasePlugin's getCommandHelp signature
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-07-14 20:32:57 -04:00
James Vega
faed698932
Return a fake MakeDB function when documenting plugins.
...
There's no need to actually search for valid database backends when
documenting. It only gets in the way of the actual document generation
process.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-27 19:31:58 -04:00
James Vega
6590bf898a
Do not directly import sets. supybot.utils provides __builtins__['set']
2009-03-11 13:37:26 -04:00
James Vega
a3e4fc5b1d
Change the modeline to use softtabstop instead of tabstop.
2006-02-11 15:52:51 +00:00
James Vega
9971e991fe
Fix the modelines.
2005-03-23 20:07:45 +00:00
Jeremy Fincher
4fb57f211a
Updated some docs in the plugins module.
2005-03-09 07:27:16 +00:00
Jeremy Fincher
c2dbe9d8ae
Another callbacks.Privmsg => callbacks.Plugin conversion.
2005-02-17 22:42:02 +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
Jeremy Fincher
7988af4abe
Removed DBHandler; it's not used anywhere except the unconverted Todo plugin, which should be switched to a flat file database (or rather, directory of databases) anyway.
2005-02-02 17:46:36 +00:00
Daniel DiPaolo
fd604dc012
Fix error in format() conversion in plugins/__init__.py
2005-02-02 07:12:27 +00:00
Daniel DiPaolo
37d0bb456e
Fix plugins.ChannelIdDatabasePlugin's __init__ to accept an Irc now, like it should
2005-02-02 07:00:47 +00:00