Richard Esplin
ba0ba71bf4
Eliminate unnecessary closing of the log file.
...
Name returns a string that is the log file name: the channel plus the timestamp.
But on my system log.name returns the fully qualified path to the currently open file. This is because log is a file handle, so if you declare it with a path, it will be included in the name.
On systems were logging is not in the current directory, the two will never match, and the file is closed and then reopened.
Only taking the basename solves this problem.
2014-01-15 16:15:11 -07:00
Valentin Lorentz
b31ce87472
Add classifiers to setup.py (Python 3.x and natural languages).
2014-01-12 15:52:10 +01:00
Valentin Lorentz
26dbe5ce81
Merge branch 'master' into testing
2014-01-07 09:37:13 +00:00
Valentin Lorentz
caba0d388e
Merge pull request #536 from ddan39/addshortopts
...
add short options to getopts. single letter options will work with both - or --
2014-01-07 01:36:05 -08:00
Dan
54196be509
add short options to getopts. single letter options will work with both - or --
2014-01-06 23:03:25 +01:00
Valentin Lorentz
5694f2499d
Merge pull request #535 from bnrubin/master
...
log: Add support for Logging's 'extra' keyword argument
2014-01-06 07:54:11 -08:00
Benjamin Rubin
1093cfb01f
log: Add support for Logging's 'extra' keyword argument
2014-01-05 17:15:00 -05:00
Valentin Lorentz
b44a08d2bd
Fix previous merge (again).
2014-01-03 17:48:30 +00:00
Valentin Lorentz
4a9d3ccd3e
Fix previous merge.
2014-01-03 17:15:32 +00:00
Valentin Lorentz
492a5ac04c
Merge pull request #534 from nyuszika7h/fix/fd-leak
...
Fix file descriptor leaks
2014-01-03 09:14:29 -08:00
nyuszika7h
0934f1075b
Merge branch 'testing' into fix/fd-leak
2014-01-03 17:45:53 +01:00
nyuszika7h
0e480b4e52
Fix file descriptor leaks
2014-01-03 17:44:01 +01:00
Valentin Lorentz
38d78a4213
httpserver: add method 'doHook' to callbacks.
2014-01-02 17:20:15 +00:00
Valentin Lorentz
9457f4dbe7
Misc: Add command @noticetell to replace “@notice [tell ]” which is no longer possible since f0233c37
.
2014-01-01 20:46:09 +00:00
Valentin Lorentz
43e1b55506
Misc: Fix @version on Python 2.
2014-01-01 11:40:49 +00:00
Valentin Lorentz
9ff1483da2
Time: Make argument to @at optional. (Replacement for GH-533 that does not need nesting.)
2013-12-28 23:05:23 +00:00
Valentin Lorentz
df375e075a
AutoMode: Fix alternative capabilities handling.
2013-12-27 15:04:50 +00:00
Valentin Lorentz
233571e4b5
Add arguments ignoreChannelOp and ignoreDefaultAllow to ircdb.checkCapability.
2013-12-27 15:04:32 +00:00
Valentin Lorentz
f1c13054fe
Revert "AutoMode: Disable overriding rights of auto* capabilities."
...
This reverts commit 4a20270655
.
2013-12-27 14:21:12 +00:00
Valentin Lorentz
0ecdb87aef
Fix crash in sending queued messages if SocketDriver.irc is None.
2013-12-27 13:15:45 +00:00
Valentin Lorentz
eee8e4ebe6
Update link in the README.
2013-12-27 08:55:22 +00:00
Valentin Lorentz
032e9a2b12
Merge pull request #531 from nyuszika7h/fix-1
...
Web: Fix exception on timeout
2013-12-25 08:18:47 -08:00
Valentin Lorentz
89fb4fb3b2
Fix stack frames display for objects without __dict__ attribute.
2013-12-25 16:08:07 +00:00
nyuszika7h
b5a9aee7a6
Web: Fix exception on timeout
2013-12-25 16:43:41 +01:00
Valentin Lorentz
47409b11a0
NickAuth: Fix argument order in @remove. Closes GH-530.
2013-12-24 16:31:45 +00:00
Valentin Lorentz
162b9ef709
Aka: Add length limit of command names in order to limit the number of database queries.
...
There were a lot of database queries (as much as words in the whole command) for non-aka commands.
2013-12-24 14:38:26 +00:00
Valentin Lorentz
83e1d1b91b
Fix previous commit.
2013-12-23 17:51:15 +01:00
Valentin Lorentz
764c788aa6
Revert "Aka: Allow optional arguments and $* together, and also multiple instances of $*."
...
This reverts commit 774285ef03
.
Conflicts:
plugins/Aka/plugin.py
2013-12-23 17:41:56 +01:00
Valentin Lorentz
4a20270655
AutoMode: Disable overriding rights of auto* capabilities.
2013-12-22 17:10:02 +00:00
Valentin Lorentz
19066b62a3
AutoMode: Add 'auto*' capabilities to override the configuration values (which apply to capabilities also used elsewhere).
2013-12-22 15:32:09 +01:00
Valentin Lorentz
3c7f9d09c5
supybot-plugin-create: Only catch ImportError for the i18n fallback.
2013-12-15 20:08:49 +00:00
Valentin Lorentz
84cad71cf5
Fix inspection of the stack if the 'self' object has no __dict__.
2013-12-15 19:30:20 +00:00
Valentin Lorentz
ee4690ea18
Math: Skip tests of negative integers exponentiation on Python 2.
2013-12-15 18:44:11 +00:00
Valentin Lorentz
3cc52aefca
Math: Fix handling of negative integers in @calc.
2013-12-15 18:29:34 +00:00
Valentin Lorentz
01278dc56c
Aka: Fix 'factorial-complexity' recursion and command overriding.
2013-12-11 16:01:01 +00:00
Valentin Lorentz
c774013e1f
Socket: Only call self.irc.feedMsg if self.irc is not None (ie. a reconnect is not in progress).
2013-12-05 12:37:00 +00:00
Valentin Lorentz
f894983b55
Add inspection of self.* in debug locals dump.
2013-12-05 12:35:56 +00:00
Valentin Lorentz
56570b3c9c
Aka: Make sure the length of the 'args' list is always strictly decreasing when making a recursive call.
2013-12-05 12:35:02 +00:00
Valentin Lorentz
583b1baf64
Socket: Fix commit 4c24f30
.
2013-12-03 05:44:50 +00:00
Valentin Lorentz
4ad9e83a11
Alias & Factoids & Plugin: Fix typos.
2013-12-01 08:45:40 +01:00
spline
be2ad1f11f
Google: Fix @calc.
2013-11-29 16:09:37 +01:00
Valentin Lorentz
e99ad36667
Aka: Fix commit ddbadcafff
(again).
2013-11-27 17:57:30 +01:00
Valentin Lorentz
feebaca292
Aka: Fix commit ddbadcafff
.
2013-11-27 17:49:03 +01:00
Valentin Lorentz
9a83b741ea
Socket: Only display the missing cert file warning if a cert file path is given.
2013-11-27 16:44:15 +00:00
Valentin Lorentz
ddbadcafff
Alias & Aka: Add memory and nesting limits. Closes GH-525.
2013-11-27 17:38:24 +01:00
Valentin Lorentz
4c24f30504
Socket: Check if certertificate file exists before using it.
2013-11-27 07:26:09 +00:00
Valentin Lorentz
13d2746454
ChannelStats & Conditionnal & Format & Karma & Limiter & MessageParser & Misc & Network & PluginDownloader & Seen & ShrinkUrl & Status & String & Time & Topic & User & Web: Update messages.pot.
2013-11-27 00:02:05 +01:00
Valentin Lorentz
b882b449ec
PluginDownloader: If bot is running on Python 3, run 2to3 on installed plugins if they are detected as being designed for Python 2.
2013-11-26 18:13:56 +01:00
Valentin Lorentz
b673cdb037
Merge branch 'testing' of github.com:ProgVal/Limnoria into testing
2013-11-26 16:59:05 +01:00
Valentin Lorentz
aea77d64e7
callbacks.py: Pass a reference to the plugin to pre-command callbacks.
2013-11-26 16:57:33 +01:00