Commit Graph

11967 Commits

Author SHA1 Message Date
Codimp 2aa1f916b0
Unix: Fix IPv6 formating of `@ping` command (#1595) 2024-10-04 20:00:07 +02:00
Valentin Lorentz 6f6f952338 Factoids: Fix search results when single key matched
1. Display the key itself (in addition to the values), because
   searching factoids makes little sense without returning the key
2. Display only matching values, instead of all other values,
   because some filters act on values
2024-08-26 18:38:36 +02:00
ssdaniel24 6abf54103a
Updated russian translation based on updated messages.pot 2024-08-25 10:32:08 +02:00
Val Lorentz 603cb600aa
Fix NormalizedString serialization splitting within escape sequences.
Resolves #1589
2024-08-25 10:20:16 +02:00
Valentin Lorentz b075a94396 Add config value supybot.reply.mores.instant.whenPrivate
This allows overriding supybot.reply.mores.instant for private messages, where
it is usually more tolerable to send multiple lines.

However, this still defaults to 1, in order to not be abusable by default.
2024-08-24 11:55:43 +02:00
Valentin Lorentz 04e0bd4271 plugin-doc: Prevent hyphenation of -- in command syntax 2024-08-24 09:48:38 +02:00
Valentin Lorentz c56fc5aa81 Web: Add youtu.be to Youtube's domain list 2024-08-15 23:03:31 +02:00
Valentin Lorentz 72e90b6972 Use cProfile instead of profile
I can't open .prof files created with 'profile' using pyprof2calltree:

```
Traceback (most recent call last):
  File "/home/val/.local/bin/pyprof2calltree", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/val/.local/lib/python3.11/site-packages/pyprof2calltree.py", line 339, in main
    kg = CalltreeConverter(pstats.Stats(args.infile))
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/val/.local/lib/python3.11/site-packages/pyprof2calltree.py", line 178, in __init__
    self.entries = pstats2entries(profiling_data)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/val/.local/lib/python3.11/site-packages/pyprof2calltree.py", line 135, in pstats2entries
    cc, nc, tt, ct = call_info
    ^^^^^^^^^^^^^^
TypeError: cannot unpack non-iterable int object
```
2024-08-02 07:49:46 +02:00
Valentin Lorentz bb120edbb1 Fix --profile
Broken by 0572d49988
2024-08-01 22:39:56 +02:00
Val Lorentz 10a341c70c
Merge pull request #1546 from progval/account-ban
Add support for account-based channel bans
2024-07-24 21:12:01 +02:00
ssdaniel24 f7b847091a
Added russian locale to limnoria (#1585)
Translated with lokalise.com
2024-07-24 21:06:09 +02:00
ssdaniel24 2f8e1e5dff Added russian locale to NickAuth plugin 2024-07-20 21:47:46 +02:00
Valentin Lorentz d8115e6f3d dbi.FlatfileMapping: Fix listing records on Windows
All other methods open the file as UTF-8, but this one still used
the system's default.
2024-07-20 19:34:06 +02:00
Valentin Lorentz be3dae3558 Add test the bot won't account-extban itself 2024-07-19 16:41:46 +02:00
Valentin Lorentz 917e3019bc Fall back to banning host instead of exact mask
This only happens on the newly introduced account extban (in case the user
does not have an account, or the server does not provide accounts)
so this does not change existing behavior.

Falling back to the host instead of the exact mask makes it less easy
to evade these bans
2024-07-19 16:41:14 +02:00
Valentin Lorentz 54f7b5a5b6 When only --account is provided, fallback to supybot.protocols.irc.banmask before exact mask 2024-07-19 13:34:18 +02:00
Valentin Lorentz cf63674f7c Fix parenthesis in docstring 2024-07-19 13:20:28 +02:00
Valentin Lorentz cf1231df4e Merge branch 'master' into account-ban 2024-07-19 13:18:08 +02:00
Valentin Lorentz cadc8f93ab Cowardly refuse to ban oneself with an account extban 2024-07-19 13:11:56 +02:00
James Lu bc852379f5 Remove adding force to builtins (#1535) 2024-07-17 22:05:48 +02:00
Val Lorentz 9fceb85c41
ci: Bump Pypy version (#1575)
* ci: Bump Pypy version

* Math: update test

* cryptography doesn't work on pypy3.10
2024-07-17 22:00:42 +02:00
Valentin Lorentz b3f256681f Services: Fix crash in __call__
When a password is added for a nick that is not a valid config entry name,
this causes _getNickServPassword to raise an error; and __call__ needs
to catch it or the bot becomes unusable.
2024-07-11 16:57:41 +02:00
Pratyush Desai 01cdfee53e
Karma: ignore trailing chars, spaces, tabs (#1579)
Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
2024-06-27 19:05:11 -07:00
Valentin Lorentz 7ccaeb088a GPG: Import documentation removed from the Getting Started guide 2024-06-15 08:20:01 +02:00
ssdaniel24 bd4a85ba08
Aka, Anonymous, PluginDownloader, Seen, Todo: Add russian locale 2024-06-12 22:44:48 +02:00
Valentin Lorentz f5302f0bfc safeEval: Fix support for Python 3.14 2024-05-30 22:00:54 +02:00
Valentin Lorentz 9a4dca8054 Misc: update version fetching to the new branches
master is now used for main development, so PyPI has to be used instead to get
the latest release
2024-05-29 21:49:23 +02:00
Valentin Lorentz dcd95d3a77 DDG: Fix regexp escape in test
9bcb21389a added it to the wrong string
2024-05-29 07:26:34 +02:00
Valentin Lorentz 5b2b38ab37 Add per-network 'vhost' and 'vhostv6' config variables 2024-05-21 21:19:14 +02:00
Valentin Lorentz 4898926f20 RSS: Fix error when re-creating a feed with a different name
Closes GH-1547
2024-05-12 16:34:36 +02:00
Valentin Lorentz b1ba8ecb2a ci: Test on Python 3.13 alpha 2024-05-05 22:18:14 +02:00
Valentin Lorentz 9ae7690484 Unix: Disable 'crypt' command on Python >= 3.13
The module is not available anymore
2024-05-05 22:18:14 +02:00
Valentin Lorentz e18332efde Internet: Use socket directly instead of telnetlib
We don't actually need telnetlib here; and it will be removed in
Python 3.11
2024-05-05 22:18:14 +02:00
Valentin Lorentz 0ad61f5791 httpserver: Rewrite without the cgi module
It is removed in Python 3.13
2024-05-05 22:18:14 +02:00
Valentin Lorentz 9bcb21389a Fix SyntaxWarning on Python 3.12 2024-05-05 22:18:14 +02:00
Valentin Lorentz f65089af86 CONTRIBUTING.md: Remove the bit about the testing branch
We're going to commit directly to master from now one.

The 'testing' policy predates PyPI releases and Git master was the primary mean
of distributing Limnoria back then, but it does not make sense anymore.
2024-05-05 17:56:48 +02:00
Valentin Lorentz 07834620f3 CONTRIBUTING.md: Update documentation URLs 2024-05-05 17:56:00 +02:00
Valentin Lorentz d435442b39 Admin: Actually clean up test channel from configuration
943f39745d did not actually because:

1. the 'part' command is not available (it's in the Channel plugin)
   so it just didn't do anything
2. one of the tests was missing the cleanup
2024-04-26 09:04:45 +02:00
Valentin Lorentz 6758c00363 limnoria-test: Fix log config
Since 03a3777129 we use .format() instead of % for substitution,
so these should not be escaped anymore.
2024-04-26 08:57:49 +02:00
Valentin Lorentz 943f39745d Admin: Fix leftover state change in testPart
it affects Channel's testPart
2024-04-18 19:47:22 +02:00
Valentin Lorentz c8030be71a Web: Need to download even more Javascript from Youtube 2024-04-18 19:33:55 +02:00
Valentin Lorentz 03c638705f Channel: Fix error in @part when channel is configured but not joined
This typically happens when banned from the channel, and returning an error
gives bot admins the impression @part did not remove the channel from
the auto-join list
2024-04-12 19:17:13 +02:00
GMDSantana 03a3777129
Create temporary files in a temporary directory
But keep it if tests fail.

Closes #1061
2024-04-12 11:06:30 +02:00
Valentin Lorentz ca8565b6d8 RSS: Don't log tracebacks for HTTP errors 2024-03-09 11:47:10 +01:00
James Lu 3e5291f6d2 ircdb.checkIgnored: return False for messages from servers
These do not pass the `ircutils.isUserHostmask` check despite being a valid msg.prefix. We should probably return gracefully here instead of forcing plugins to deal with such a case themselves.

Closes GH-1548
2024-02-06 16:49:56 +01:00
Valentin Lorentz a2e55ca1f6 RSS: Update link to feedparser 2024-01-03 18:37:11 +01:00
Valentin Lorentz d55a08c63e Regenerate plugin READMEs 2024-01-03 18:37:11 +01:00
Stathis Xantinidis 5ca0fcd87c Changed whois provider domain to whois.iana.org
The previous was giving timeouts
2023-12-15 22:18:10 +01:00
Valentin Lorentz 06c88581ec Services: Improve error on missing password or NickServ nick 2023-11-18 22:02:36 +01:00
Valentin Lorentz fffdd82571 Fediverse: Catch URLErrors raised when checking webfinger support 2023-10-29 12:40:48 +01:00