Valentin Lorentz
4213d95356
plugin setup: declare the long_description is in markdown
...
Else PyPI rejects it because it can't parse it as ReST.
2020-10-07 19:46:56 +02:00
Valentin Lorentz
16b7fd9f37
Misc: Fix log message on invalid commands in private
...
It showed 'Not replying to <command> in None,', since channel is None in
private (unlike the former msg.args[0], which was the bot's nick).
I wasn't careful enough when I replaced msg.args[0] with msg.channel
across the codebase.
2020-09-30 10:25:22 +02:00
Valentin Lorentz
48b24769c2
irclib: Document classes better, especially instance attributes.
2020-09-27 15:51:01 +02:00
Valentin Lorentz
38b0541f04
Autocomplete: fix typo in README.
2020-09-27 15:24:05 +02:00
Valentin Lorentz
5d80b2eec9
irclib: Fix crash when MOTD is sent again later in the connection.
...
This can happen with this ZNC module: https://wiki.znc.in/Missingmotd
or if a plugin sends a 'MOTD' command.
2020-09-19 17:08:52 +02:00
Valentin Lorentz
0a6bb49fe6
irclib: Fix crash on CAP NEW.
...
Turns out, it wasn't tested so it never worked...
2020-09-19 16:55:51 +02:00
Valentin Lorentz
6da0e7fc5f
Math: Fix test on Python 3.10 (nightly)
2020-09-19 10:38:07 +02:00
Valentin Lorentz
49e03decc4
.travis.yml: don't install opt deps on py 3.4 and 3.5.
...
feedparser 6 doesn't support these versions.
2020-09-19 10:29:41 +02:00
Valentin Lorentz
0102d64cf4
RSS: fix tests with feedparser 6.
...
Mocks the urllib API it uses instead of an internal function.
2020-09-19 10:15:23 +02:00
Valentin Lorentz
f4d6bd11be
registry: forbid direct access to Regexp.setValue.
...
This is not a regression; this was already forbidden before
23417b0675
, and this commit was not
tagged/released yet at the moment I'm writing this one.
2020-09-15 09:59:08 +02:00
Valentin Lorentz
ac94c5291e
registry: fix Regexp initialization when the default value is not None.
2020-09-15 09:57:15 +02:00
Valentin Lorentz
864315cc5f
Config: Don't prepend @ to config value names if their only children are networks.
2020-09-09 15:23:58 +02:00
Valentin Lorentz
bdbb74f046
BadWords: Re-allow words with a space (aka 'phrases')
...
I disallowed it in f3f628ddba
because they
couldn't be deserialized properly.
This commit adds a new 'phrases' config var in addition to 'words',
that is comma-separated instead of space-separated.
2020-09-05 22:59:09 +02:00
Valentin Lorentz
23417b0675
registry: Fix regression preventing default None value for Regexp.
2020-09-05 22:20:38 +02:00
Valentin Lorentz
6a3be33fcd
registry: Don't use an internal state for Regexp, it breaks net- and chan- specific values.
2020-09-05 21:40:40 +02:00
Valentin Lorentz
f3f628ddba
BadWords: disallow adding words with a space in them.
...
Deserialization splits on spaces, so they are not preserved properly.
2020-09-05 21:37:32 +02:00
Valentin Lorentz
97016b9c55
Exempt trusted users from being ignored.
...
Closes GH-66.
2020-09-05 16:42:28 +02:00
Valentin Lorentz
77682cc50b
ChannelLogger: Add tests for non-relayed messages when rewriteRelayed is True.
2020-08-30 14:52:45 +02:00
Valentin Lorentz
01dc289cd6
ChannelLogger: write tests for relayed privmsg
2020-08-30 14:42:10 +02:00
Valentin Lorentz
7887001ea3
ChannelLogger: write tests for privmsg and notice.
2020-08-30 14:36:33 +02:00
Valentin Lorentz
a33af98af1
ChannelLogger: add tests for getLog.
2020-08-30 12:19:36 +02:00
Valentin Lorentz
811ccfe3bf
ChannelLogger: update comment
2020-08-29 22:53:25 +02:00
Valentin Lorentz
532d38d6da
ChannelLogger: Fix typo in variable name.
...
Bug introduced in f253da049d
.
2020-08-29 22:49:06 +02:00
Valentin Lorentz
6f5d8c3011
Autocomplete (+ Fediverse): configure Black.
2020-08-29 18:44:32 +02:00
Valentin Lorentz
7710edb5fe
Autocomplete: flake8
2020-08-29 18:39:03 +02:00
Valentin Lorentz
d0eb48c90e
Autocomplete: more readable test failures.
2020-08-29 18:38:57 +02:00
Valentin Lorentz
6f34f377e5
Autocomplete: return only the common prefix + one word.
2020-08-29 18:38:39 +02:00
Valentin Lorentz
efb4d476a5
Autocomplete: Only return the end of the current word (or the next one if the current word is finished)
2020-08-29 18:19:00 +02:00
Valentin Lorentz
fbf9f0166d
Autocomplete: Fix name of response tag.
2020-08-29 16:42:19 +02:00
Valentin Lorentz
a55fbab591
Autocomplete: Initial implementation.
...
This plugin implements the first version of
https://github.com/ircv3/ircv3-specifications/pull/415
2020-08-29 16:33:29 +02:00
Valentin Lorentz
fe84bfbbb6
callbacks: add comments to findCallbacksForArgs.
2020-08-29 16:29:40 +02:00
Valentin Lorentz
f253da049d
ChannelLogger: rewrite relayed messages echoed by the server
...
The former code worked only with emulated echo-message, as it depends
on internal tags.
In case echo-message (and labeled-response) is enabled, rely on
remembering the label instead.
2020-08-23 16:34:59 +02:00
Valentin Lorentz
91d2a2860f
ChannelLogger: Fix regression preventing outgoing messages from being logged.
...
Since eb1e27e20b
, IrcCallback.__call__ filters out
privmsgs and notices sent by the bot itself unless echoMessage=True is set.
2020-08-23 16:32:47 +02:00
Valentin Lorentz
5dc72d2b34
Rename IrcCallback.echo_message to IrcCallback.echoMessage.
...
For consistency with 'alwaysCall' and 'noIgnore'.
2020-08-23 16:27:22 +02:00
Valentin Lorentz
761fc2353e
utils.net: Do not disable TLS certificate check when authorityCertificate is set.
...
It makes sense that manually configuring a CA overrides this
value which defaults to False.
2020-08-01 21:46:26 +02:00
Valentin Lorentz
57da6d04e2
utils.net: always check fingerprints if they are set, even if verifyCertificates is False.
...
It makes sense that manually configuring fingerprints overrides this
value which defaults to False.
2020-08-01 21:45:08 +02:00
Valentin Lorentz
9317a67345
.travis.yml: don't test optional dependencies on pypy3 + trusty, python-cryptography can't build against the system openssl anymore.
2020-07-25 15:46:12 +02:00
Valentin Lorentz
8f72c418e5
callbacks: don't crash when the prefix is from network services.
2020-07-25 15:29:23 +02:00
James Lu
5b52c73fd4
README: point support channel to #limnoria
...
As Supybot upstream is unmaintained, having multiple channels adds to support overhead and makes conversations harder to follow. Also, #limnoria is already the larger of the two channels.
[skip ci]
2020-07-23 20:46:13 +02:00
Valentin Lorentz
a84eabf146
Factoids: Add --author filtering to @search.
2020-07-14 18:16:10 +02:00
Gordon Shumway
6e47278b9f
Google: Set User-Agent override. ( #1426 )
...
With a custom (globally-configured) user-agent, Google may serve a different page, which breaks this plugin.
This override disables this custom user-agent and uses a predefined one, which is known to work.
2020-07-14 14:44:43 +02:00
Gordon Shumway
5315cd3275
userAgents: avoid potential IndexError
...
random.choice() should only be run after verifying the config has been set.
2020-07-12 16:42:42 +02:00
Gordon Shumway
4c4d0024ca
Fix typo. HttpUserAgent -> HttpUserAgents ( #1424 )
...
Fixes typo in https://github.com/ProgVal/Limnoria/pull/1423
2020-07-11 15:13:13 -07:00
Gordon Shumway
73de5616e8
Selectable User-Agent for HTTP requests ( #1423 )
...
https://github.com/ProgVal/Limnoria/issues/1382
2020-07-11 10:25:09 +02:00
Gordon Shumway
e5a04aaf13
DDG: Add region test.
2020-07-06 22:34:29 +02:00
oddluck
1c1ba1119d
DDG: Add region and safeSearch configs.
2020-07-06 22:34:29 +02:00
Gordon Shumway
902677a378
DDG: Fix redirect detection.
2020-07-06 22:34:29 +02:00
Valentin Lorentz
0284ed9ebd
irclib: Don't error when 004 is missing umodes and chanmodes.
2020-07-05 19:45:08 +02:00
Valentin Lorentz
76edd3189c
Herald: Use time.monotonic instead of time.time.
...
To prevent jumping backward and forward on system clock changes.
2020-07-03 21:00:43 +02:00
Gordon Shumway
9081f5678b
Herald: Throttle default heralds.
...
Fixes https://github.com/ProgVal/Limnoria/issues/1372
2020-07-03 08:39:05 +02:00