mogad0n
df6ebc78a0
Add command @scheduler remind
...
This is a safe command for admins to allow as it's limited to text reminders,
unlike the equivalent scheduler.add (+ misc.echo) which usually needs to be
restricted to prevent abuse
2020-10-07 21:42:53 +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
38b0541f04
Autocomplete: fix typo in README.
2020-09-27 15:24:05 +02:00
Valentin Lorentz
6da0e7fc5f
Math: Fix test on Python 3.10 (nightly)
2020-09-19 10:38:07 +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
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
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
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
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
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
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
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
Valentin Lorentz
138957676e
DDG: better document the transitions in the parser.
2020-07-01 20:06:29 +02:00
Valentin Lorentz
427cf82d6b
DDG: Add debug prints in the parser.
2020-07-01 20:05:23 +02:00
Gordon Shumway
59f1441d23
Google: Fix plugin.
2020-07-01 10:37:22 +02:00
Gordon Shumway
01f166a224
Google: Fix plugin.
2020-07-01 10:37:22 +02:00
Valentin Lorentz
9be5676dfd
DDG: Update lite search URL.
...
Duckduckgo started redirecting https://duckduckgo.com/lite to https://lite.duckduckgo.com/lite
so it was mistakenly interpreted as a !bang.
Changing the initial URL fixes this false detection.
2020-07-01 10:33:26 +02:00
Valentin Lorentz
ef59a033e3
Channel: add support for MODES= with no value in ISUPPORT.
...
Oragono uses that.
2020-06-27 07:51:16 +02:00
Valentin Lorentz
0e2b0a96c8
SedRegex: Log error exceptions from the replacer.
2020-06-20 12:38:44 +02:00
Valentin Lorentz
88d0a3a79f
NickAuth: Add WHOX test.
2020-06-12 19:29:08 +02:00
Valentin Lorentz
99e8b598d0
NickAuth: Add test for extended-join.
2020-06-12 19:11:29 +02:00
Valentin Lorentz
99cb656df0
NickAuth: Detect extended-join based on capability.
...
It's more reliable than just checking the number of arguments
(eg. if a network decides to add its own set of arguments in
a way incompatible with extended-join).
2020-06-12 19:11:15 +02:00
Valentin Lorentz
dd865583e7
NickAuth: cleanups.
2020-06-12 18:49:02 +02:00
Valentin Lorentz
2ceb60762e
Seen: Don't internalize IrcString (again).
2020-06-05 00:41:18 +02:00
Valentin Lorentz
aa2f9202ec
Google: Fix false positives on embedded thumbnails (eg. Youtube results).
2020-05-28 19:07:08 +02:00
Valentin Lorentz
847e51a7ec
plugins: Fix name mismatch of typeSubstitution in getCommandHelp.
...
Bug introduced in 4046a1b201
.
2020-05-27 21:19:09 +02:00
Valentin Lorentz
8b9ac3540d
plugins: Fix AttributeError in getCommandHelp.
...
Introduced in commit 4046a1b201
.
2020-05-27 20:30:39 +02:00
Valentin Lorentz
2924845de4
Google: Update, with a proper HTML parser.
...
Hopefully it will be more robust than the regexp.
2020-05-24 18:57:27 +02:00
Valentin Lorentz
ed87de1527
Filter: add support for upper-case letters.
2020-05-23 13:32:26 +02:00
Valentin Lorentz
b4d21127b1
Filter: Add uwu.
2020-05-23 12:10:40 +02:00
Valentin Lorentz
dde35a844d
Seen: Don't internalize IrcString.
...
It's a bug, and it would mess case-insensitive comparison anyway.
2020-05-22 08:38:42 +02:00