Commit Graph

4741 Commits

Author SHA1 Message Date
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 5341df0254 Google: *copy* the utils.web.defaultHeaders before adding items to it. 2014-01-14 20:55:56 +00:00
nyuszika7h c3dcc4f416 Do the previous commit in a more clean way 2014-01-13 18:27:52 +01:00
nyuszika7h 6dd179f9e9 Later: Always prefix nick if telling in channel 2014-01-13 18:07:49 +01: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 f1c13054fe Revert "AutoMode: Disable overriding rights of auto* capabilities."
This reverts commit 4a20270655.
2013-12-27 14:21:12 +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 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 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 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 ddbadcafff Alias & Aka: Add memory and nesting limits. Closes GH-525. 2013-11-27 17:38:24 +01: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 b8abbd1e36 Make dependency on python-dateutil optionnal. 2013-11-24 14:47:26 +00:00
Valentin Lorentz a0c5e06445 PluginDownloader: Add skgsergio's repository. 2013-11-19 18:18:28 +00:00
Valentin Lorentz 289f614bfa Web: Make choice of displayed domain (origin/target) configurable. 2013-11-19 10:20:32 +00:00
Valentin Lorentz 11d8f4655b Web: Display the target domain in snarfer. Re-implements pull request GH-523. 2013-11-19 10:16:43 +00:00
Valentin Lorentz bdec243909 ChannelStats: Fix error when using @channelstats on a channel the bot did not join. 2013-11-18 20:44:56 +00:00
Valentin Lorentz 6c9b03f70c PluginDownloader: Fix traceback printing. 2013-11-10 17:48:09 +01:00
Valentin Lorentz fed2bcf9d3 PluginDownloader: Display plugin description on one line. 2013-11-10 17:46:30 +01:00
Valentin Lorentz 2b12a33d82 Tell the users to use the list command if they use the help command without any arguments. Closes GH-516. 2013-11-10 11:27:42 +01:00
Valentin Lorentz 25dc7e092e Fix precedence of shorter Aka commands in Aka. 2013-11-09 21:19:19 +00:00
Valentin Lorentz 3883b3dfd3 Fix infinite recursion in Aka when calling a command in Aka which has a
prefix that is another Aka command.
2013-11-09 20:45:44 +00:00
Valentin Lorentz cc9f1f0a2c Misc: Fix output of @version. 2013-10-29 17:10:59 +01:00
Valentin Lorentz 5846059c3f Merge branch 'testing' of github.com:ProgVal/Limnoria into testing 2013-10-28 14:17:23 +01:00
Valentin Lorentz b6ea53b07a Add Python version to 'supybot --version' and @version. 2013-10-27 11:40:10 +01:00
Valentin Lorentz a67b31c9ea Aka: Fix typo (Error, not error). 2013-10-23 13:42:02 +00:00
Terje Hoås 599f80ec5f Google: Filter out [, before attempting to interpret Googles response as json. 2013-09-25 10:20:43 +02:00
Valentin Lorentz 83a2895e18 Format: Add command @stripformatting. 2013-09-21 12:09:37 +00:00
Valentin Lorentz 26d7fd7aa1 Seen: Fix docstring of @since. 2013-09-14 20:24:13 +02:00
Valentin Lorentz dfafee3ff2 Misc: Adapt GitHub's version format to the new one (introduced in 0fb2ee1bf7). 2013-09-11 17:17:32 +00:00
Valentin Lorentz 81ce98656f Alias: Allow interrogation mark. 2013-08-25 15:41:56 +02:00
Valentin Lorentz d78ae3de7b Aka: Fix encoding issue with Python 2. 2013-08-25 15:41:06 +02:00
Valentin Lorentz d26a1a5be9 Aka: Fix typo. 2013-08-25 01:23:53 +02:00
Valentin Lorentz fba38a5df9 Aka: Prevent overriding of other plugins commands. 2013-08-25 01:07:45 +02: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
James McCoy a483fef39d RSS: Ensure results is declared before trying to access it
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2013-08-24 00:04:29 -04:00
Arnout Engelen 58e7e61d69 Only reset the cached feed when the response actually contains headlines
Some feeds, such as those from sourceforge.net, will sometimes show an error
page rather than a feed. In this case the feed cache used to be cleared for
that feed, causing all 'old' headlines to be flooded to the channel as soon
as the feed came back online.

This patch hopefully fixes that by only resetting the cache when the returned
page actually contains headlines.

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2013-08-23 23:13:28 -04:00
Valentin Lorentz f32f36fea4 Alias: Also allow exclamation marks, as they are allowed by the registry. 2013-08-22 14:03:37 +02:00
Valentin Lorentz ccafbf4847 Aka: Speed up commands listing by statically listing builtin commands instead of invoking parent's listCommands(). 2013-08-21 20:56:18 +02:00
Valentin Lorentz d2762d9fb9 Aka: Add explicit error message if sqlalchemy is not installed. 2013-08-21 18:04:16 +02:00
Valentin Lorentz 790bda4664 Web: Fix nesting of commands (bug introduced in d8a4ef8421). 2013-08-20 11:37:39 +02:00
Valentin Lorentz d14f5df76f ChannelLogger: Rewrite relayed nicks. Closes GH-507. 2013-08-19 17:22:56 +02:00
Valentin Lorentz 1724d6867b Conditional: Fix handling of exceptions. 2013-08-18 17:37:42 +02:00
Valentin Lorentz 43f1e5cd24 Topic: Fix previous commit. 2013-08-17 19:51:17 +00:00
Valentin Lorentz 410472c317 Topic: Change behavior of supybot.plugins.Topic.alwaysSetOnJoin to only apply if the actual topic differs from the default. 2013-08-17 19:30:28 +00:00
Valentin Lorentz b57be07f1c Topic: Add supybot.plugins.Topic.alwaysSetOnJoin. 2013-08-17 17:48:25 +00:00
Valentin Lorentz dfdc7f1cd1 Merge pull request #506 from kytvi2p/unicode2.x
Unicode fixes for python 2.x
2013-08-17 07:54:45 -07:00
Kill Your TV b46a0dd6a2 Unicode fixes for python 2.x
These changes have been tested with Python 3.2.3 and Python 2.7.5.
2013-08-17 14:12:10 +00:00
Valentin Lorentz e1d0ab2774 Aka: Fix support for non-ascii commands name with Python 2 (bug introduced in 64300b8a02). 2013-08-17 16:12:06 +02:00
Valentin Lorentz 921ff2ae07 Aka: Fix case-sensitivity. 2013-08-17 07:02:21 +00:00
Valentin Lorentz e120ab7eab User: Add custom error message for @gpg add arguments. 2013-08-16 16:23:08 +02:00
Kill Your TV 56c80e62f1 RSS: fix initialAnnounceHeadlines not being obeyed 2013-08-15 22:32:19 +00:00
Valentin Lorentz a2f115e09f Alias: Prevent @add from allowing invalid names. 2013-08-15 13:30:12 +02:00
Valentin Lorentz 73f63c25b9 Aka: Fix import of locked alias. 2013-08-15 10:55:57 +02:00
Valentin Lorentz 18cc1ff3bb Revert "Web: Disable @title and @doctype for non-HTML documents." (incompatible with Python 2)
This reverts commit 34b0e5faad.
2013-08-15 00:14:34 +00:00
Valentin Lorentz 13bf8c2915 Aka: Fix crash when logging (on Python 2). 2013-08-11 11:28:53 +00:00
Valentin Lorentz e5bac7e023 Aka: Fix previous commit. 2013-08-11 11:20:36 +00:00
Valentin Lorentz 50e3f2ab16 Aka: Use %q converter instead of %r for logging (escapes % in expression). 2013-08-11 11:10:17 +00:00
Valentin Lorentz 4e9bb2c241 Later: Use builtin support for '%s ago'. 2013-08-11 12:22:12 +02:00
Valentin Lorentz d6223eee9d Aka: Remove side effects in everythingReplace and fix crash when evaluating expressions where $* is in the nested command. 2013-08-11 12:02:00 +02:00
Valentin Lorentz 269f22a84b User: Make arguments handling of '@user hostmask remove' similar to '@user hostmask add' 's. Closes GH-101. 2013-08-10 16:01:25 +02:00
Valentin Lorentz 34b0e5faad Web: Disable @title and @doctype for non-HTML documents. 2013-08-09 18:03:02 +02:00
Valentin Lorentz d8a4ef8421 Web: Prevent memory bomb when calling commands with an URL to a page sending crafted requests. 2013-08-09 12:16:24 +02:00
Valentin Lorentz 33cc9bc6b8 MessageParser: Fix crash when using @messageparser add for global database. 2013-08-08 16:01:36 +00:00
Valentin Lorentz 23dfa23f31 Aka: Prevent infinite loop (+ memory bomb) when nesting Akas using $*. 2013-08-08 14:12:02 +02:00
Terje Hoås 36bce4d753 Seen: Change 'last left the #channelname' to 'last left #channelname' in the English error message. 2013-08-08 10:02:26 +02:00
Valentin Lorentz 58261e78c7 Dict: Fix lookup of some words (looks like dict.org does not follow RFC2229). Closes GH-494. 2013-08-07 15:41:08 +00:00
Valentin Lorentz 80b4e164ec Internet: Fix @whois. 2013-08-06 10:17:23 +00:00
Valentin Lorentz 1e8dddaa6a Conditional: Add --case-insensitive switch to @match. 2013-08-04 08:35:15 +02:00
Valentin Lorentz 4fcf4d426d Aka: Add a README (based on Alias'). 2013-08-02 15:33:45 +02:00
Valentin Lorentz 7f562e15c9 Aka: Fix conflict of test cases of they are run after Alias' tests. 2013-08-01 12:07:19 +02:00
Valentin Lorentz 7c30936ee1 Merge branch 'aka' into testing 2013-08-01 10:48:42 +02:00
Valentin Lorentz ba434b1896 Aka: Fix listCommands, which returned tuples instead of strings. 2013-08-01 10:44:19 +02:00
Valentin Lorentz b09245a1c6 Alias: Fix @remove for escaped aliases. 2013-07-31 19:28:18 +02:00
Valentin Lorentz 6cce96868e Aka: Add messages.pot. 2013-07-31 19:09:29 +02:00
Valentin Lorentz 41581dac2f Aka: Add @importAliasDatabase command. 2013-07-31 19:08:49 +02:00
Valentin Lorentz 33a236079f RSS: Fall back to decoding the headline with 'utf8' if 'ascii' failed. 2013-07-31 09:33:03 +00:00
Valentin Lorentz 53c7c9beaa Filter: Fix encoding issue on Python 3. 2013-07-30 17:35:45 +00:00
Valentin Lorentz 4d801a02c5 PluginDownloader: Fix @info for Python 3. 2013-07-30 10:53:58 +02:00
Valentin Lorentz 517ee1cde6 Time: Fix import on Python 3. 2013-07-27 11:39:30 +00:00
Valentin Lorentz 3341cd15ba Admin & Factoids & Google & Later & Misc & NickAuth & RSS & Seen & User & Web: Update messages.pot 2013-07-25 11:39:06 +02:00
Valentin Lorentz d5c0df39f3 Aka: Add recursivity test. 2013-07-24 18:23:51 +02:00
Valentin Lorentz e68e7f36de Aka: Edit help of @add to match new features related to arguments. 2013-07-24 18:23:33 +02:00
Valentin Lorentz 774285ef03 Aka: Allow optional arguments and $* together, and also multiple instances of $*. 2013-07-24 13:14:25 +02:00