Valentin Lorentz
619dd2ce82
Merge branch 'merge-gribble' into testing
2012-08-30 11:38:56 +02:00
Daniel Folkinshteyn
38ff1a1137
Seen: require caller to be in target channel when using commands in this plugin.
...
This fixes information leakage from private channels.
Conflicts:
plugins/Seen/plugin.py
2012-08-30 11:33:55 +02:00
Daniel Folkinshteyn
e557541de1
Channelstats: require caller to be in target channel when using commands in this plugin.
...
This fixes information leakage from private channels.
2012-08-30 11:33:01 +02:00
Daniel Folkinshteyn
2c051bab9f
core: force inet_aton argument to string to prevent occasional error on reconnect.
...
it /should/ always be a string anyway, but sometimes things break with
a TypeError that it is an int instead of the expected string and hangs
up the bot.
2012-08-30 11:32:48 +02:00
Daniel Folkinshteyn
643788b478
Math: default %f formatting rounds to 6 decimal places. increase that to 16.
2012-08-30 11:32:43 +02:00
Valentin Lorentz
ba876d7ddf
Fix commit 17227a6829
.
2012-08-28 20:27:22 +00:00
Valentin Lorentz
17227a6829
AutoMode: Dismiss auto-op/halfop/voice if the user already has it.
2012-08-27 15:42:08 +02:00
Valentin Lorentz
0c6320e9c1
RSS: Display error instead of traceback if fetching a feed failed.
2012-08-26 07:38:40 +00:00
Valentin Lorentz
30f711b12f
Google: Prevent flooding when no matches are found.
2012-08-26 07:37:40 +00:00
Valentin Lorentz
d2ab53cd19
Fix parsing of 004 message. (Broken in d9531d2d
).
2012-08-25 20:17:15 +02:00
Valentin Lorentz
0780d445e2
Merge pull request #388 from Hoaas/testing
...
Google: Stop output when there are no result.
2012-08-17 08:27:46 -07:00
Terje Hoås
e1adc011c3
Google: Stop output when there are no result.
2012-08-17 17:16:26 +02:00
Valentin Lorentz
b5e965c48a
Web: Decode _after_ reading the page in @fetch.
2012-08-14 21:08:54 +00:00
Joe Julian
653e4dec1b
urlquoting the url leads to short urls that prepend "http://" to the url
2012-08-14 18:56:44 +02:00
Valentin Lorentz
3739def69d
Merge branch 'py3k-backport' into testing
2012-08-13 13:01:58 +00:00
Valentin Lorentz
d2b33a3794
Fix compatibility with Python 2.6.
2012-08-13 13:01:50 +00:00
Valentin Lorentz
a7d36297c2
Prevent run_2to3 from copying locale/ to py3k/ instead of py3k/locale/ (thanks Cravix).
2012-08-13 12:37:23 +00:00
Valentin Lorentz
24d73eb1f8
ShrinkUrl: Add ur1.ca support.
2012-08-11 11:07:40 +02:00
Valentin Lorentz
5dfba06aae
Prevent irc.replies from replying in private since fc9daa9
.
2012-08-10 13:10:14 +00:00
Valentin Lorentz
12b8e44dc7
AutoMode: Fix traceback since b5c99b1c
.
2012-08-10 13:04:25 +00:00
Valentin Lorentz
fc9daa9953
Make supybot.reply.oneToOne channel-specific.
2012-08-10 12:27:25 +00:00
Valentin Lorentz
19708c55cc
Fix typo in 5f94da8660
.
2012-08-08 19:51:11 +00: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
62d56dee18
Alias: Allow pipes in name.
2012-08-08 21:44:10 +02:00
Valentin Lorentz
5f94da8660
Fix test.assertHelp for commands with long help (XX more messages).
2012-08-08 21:41:25 +02:00
Valentin Lorentz
1e794d88d7
ChannelLogger: Use open() instead of file().
2012-08-07 20:53:06 +00:00
Valentin Lorentz
94d09da44a
Alias: Save and restore aliases with dots in them.
2012-08-06 20:36:10 +02:00
Valentin Lorentz
e3d170d9fe
Add support for network-specific umodes.
2012-08-06 15:59:00 +02:00
Valentin Lorentz
e00b8b9903
Remove src/version.py before running 2to3.
2012-08-05 22:20:41 +02:00
Valentin Lorentz
fad0c9d788
Copy localised files in run_2to3.sh.
2012-08-05 22:20:25 +02:00
Valentin Lorentz
08382d1bfe
locale/fr.py: Use spaces instead of tabs.
2012-08-05 20:23:15 +02:00
Valentin Lorentz
22befe3d61
Owner: Prevent use of uninitialized variable.
2012-08-05 18:28:17 +02:00
Valentin Lorentz
ea17fe5c57
Unix: Decode stream for the command line in sysuname.
2012-08-05 18:26:39 +02:00
Valentin Lorentz
4fc1e934c7
PluginDownloader: Open target files in binary mode.
2012-08-05 18:02:54 +02:00
Valentin Lorentz
c149e8fa81
Make 2to3 ouput files in py3k/ subfolder.
2012-08-05 17:56:25 +02:00
Valentin Lorentz
a40ebae4da
String: Apply/unapply base64 encoding when dealing with a binary encoding.
2012-08-05 17:55:29 +02:00
Valentin Lorentz
5ae3e3fdcf
ShrinkUrl: Decode data from web services.
2012-08-05 16:58:09 +02:00
Valentin Lorentz
3dc8e04195
utils.web.urlencode: Encode data into bytes.
2012-08-05 16:57:40 +02:00
Valentin Lorentz
1b6be5842f
src/cdb.py: Use 'future' division and decode/encode data from/to the disk.
2012-08-05 16:57:18 +02:00
Valentin Lorentz
535593d555
src/dbi.py: Use open() instead of file().
2012-08-05 16:56:07 +02:00
Valentin Lorentz
14200e002a
Rename cdb.open to cdb.open_db and open cdb files in binary mode.
2012-08-05 15:47:30 +02:00
Valentin Lorentz
709c3390ef
Internet: Remove debug print.
2012-08-05 15:20:35 +02: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
16aeaaa4fe
Use the 'reverse' parameter of sorted() instead of 'mycmp'.
2012-08-05 14:49:47 +02:00
Valentin Lorentz
a731841af8
Dict: Decode network stream as unicode.
2012-08-05 14:38:11 +02:00
Valentin Lorentz
0e450a5eff
src/callbacks.py: Use unicode_escape if running Python 3.
2012-08-05 14:22:53 +02:00
Valentin Lorentz
34bb33b65f
Alias & MoobotFactoids: Fix import error in test.py.
2012-08-05 14:14:55 +02:00
Valentin Lorentz
242a54fbf2
Alias & RSS: remove third argument to types.MethodType.
...
It is useless in the case in point, and is not compatible with Python 3.
2012-08-05 14:08:04 +02:00
Valentin Lorentz
089be4c8a5
src/i18n.py: Use 'str' as a base class instead of 'unicode'.
2012-08-05 13:48:11 +02:00
Valentin Lorentz
041893aaf9
Socket driver: encode strings just before sending them.
2012-08-05 13:47:48 +02:00