Commit Graph

2111 Commits

Author SHA1 Message Date
Alexey Sokolov 6e0591ff98 Remove unused field and getter
When account-tag was introduced, these fields were used, but since cap
3.2 this is no longer useful
2024-02-10 00:18:11 +00:00
ZNC-Jenkins 0b45616bd3 Update translations from Crowdin for de_DE 2024-02-09 05:05:55 +00:00
ZNC-Jenkins f066c3ee71 Update translations from Crowdin for bg_BG da_DK fr_FR nl_NL 2024-02-09 01:46:04 +00:00
Alexey Sokolov 2b3b224bca Make modperl support AddServerDependentCapability 2024-01-14 12:11:00 +00:00
Alexey Sokolov efd136c01c Make modpython work with server-dependent caps 2024-01-14 11:12:32 +00:00
Alexey Sokolov 4b1a524a72 Move extended-join test to integration test
Fix build of modperl/modpython
2024-01-14 01:46:12 +00:00
Alexey Sokolov b1009bd809 Code cleanup
Since now there are no server-dependent caps defined in the core
2024-01-14 00:27:21 +00:00
Alexey Sokolov f7ff0ee3f3 Modulefy core server-dependent caps 2024-01-13 23:34:03 +00:00
Alexey Sokolov 1d3b33354f Merge branch 'master' into cap302 2024-01-06 20:36:24 +00:00
Alexey Sokolov 64ce25e53d Update comments, namespace some internal modpython functions 2024-01-05 08:54:08 +00:00
Alexey Sokolov 3f4c1cce77 Fix build with SWIG 4.2.0
https://bugs.gentoo.org/921230
2024-01-05 02:20:49 +00:00
Falk Rund 17a004aa0b Welcome to 2024
[skip ci]
2023-12-31 21:09:25 +01:00
Alexey Sokolov 4cbccac707 Merge branch 'master' into cap302 2023-11-19 10:53:47 +00:00
ZNC-Jenkins 5e950e65fb Update translations from Crowdin for pl_PL 2023-11-07 00:33:08 +00:00
ZNC-Jenkins 3f2d7d5e87 Update translations from Crowdin for it_IT 2023-11-04 00:32:22 +00:00
ZNC-Jenkins 397b8e5ced Update translations from Crowdin for el_GR id_ID 2023-10-30 00:34:05 +00:00
ZNC-Jenkins edd5dac89f Update translations from Crowdin for bg_BG da_DK de_DE fr_FR nl_NL 2023-10-26 00:33:58 +00:00
Alexey Sokolov aa5016657b Fix modpython to show list of available modules
In 1.8.0 I switched from deprecated imp to importlib for loading module
by name, but forgot about this function

Close #1884
2023-10-26 00:36:12 +01:00
ZNC-Jenkins cd275d23dd Update translations from Crowdin for id_ID 2023-10-04 00:33:59 +00:00
Alexey Sokolov 5c7aac3958 Merge pull request #1883 from DarthGandalf/applecctz
Maybe fix build on macos
2023-09-30 16:37:16 +01:00
Alexey Sokolov afe94158a7 Try to simplify building modules 2023-09-30 11:59:53 +01:00
Alexey Sokolov 57188cda04 Pass list of deps to modperl and modpython bindings too 2023-09-30 10:07:21 +01:00
Alexey Sokolov 901c318028 Maybe fix macos build again 2023-09-30 03:11:30 +01:00
ZNC-Jenkins 3e65551567 Update translations from Crowdin for bg_BG da_DK de_DE el_GR fr_FR nl_NL 2023-09-29 00:34:39 +00:00
Alexey Sokolov 4228754ffb Use imported targets in cmake more consistently 2023-09-28 22:11:48 +01:00
Eric Mertens 8c00ddb330 Update route_replies.cpp 2023-09-28 13:02:13 -07:00
Eric Mertens b5edca59eb route_replies: add 337 to whois
solanum uses 337 to report when a user's idle time is hidden by umode +I. libera.chat has enabled this mode making the replies available to users today.
2023-09-28 11:43:01 -07:00
ZNC-Jenkins 69c8eb0d04 Update translations from Crowdin for pl_PL 2023-09-24 00:33:16 +00:00
ZNC-Jenkins b57643e173 Update translations from Crowdin for bg_BG da_DK de_DE el_GR es_ES fr_FR id_ID it_IT nl_NL pt_BR pt_PT ro_RO ru_RU tr_TR 2023-09-23 21:09:18 +00:00
Peter Ajamian 1240ddc693 Add TODO entry to move account logic to a separate method. 2023-08-13 22:29:48 +12:00
Peter Ajamian 0a0ce543fa sAccount for consistency
All CString variables should start with the letter s.
2023-08-12 21:55:09 +12:00
Peter Ajamian 47b815ae5b Add account to joins for the log module.
This commit adds the account name for identified users to "Joins" lines in logs
generated by the log module.  It can get the account name from either the
account tag (if the account-tag capability is requested) or the extended-join
info (if the extended-join capability is requested).  The current version of ZNC
requests both, but this feature will still work if the IRC server only supports
one or the other.
2023-08-09 19:13:54 +12:00
ZNC-Jenkins 0772dd5718 Update translations from Crowdin for de_DE 2023-02-28 00:30:31 +00:00
ZNC-Jenkins 454693147d Update translations from Crowdin for pt_PT 2023-01-19 00:30:01 +00:00
Alexey Sokolov c15fc63c55 Implement cap negotiation 3.2 on server side
Used for "server-dependent" caps which already rely on sending NEW and
DEL to client. This functionality is not yet available for caps added by
modules.
2023-01-09 01:08:04 +00:00
ZNC-Jenkins 35d8452f99 Update translations from Crowdin for da_DK 2023-01-07 13:48:46 +00:00
Falk Rund f9fd05c307 Welcome to 2023 2023-01-01 06:49:00 +01:00
ZNC-Jenkins 3c11353cbc Update translations from Crowdin for bg_BG de_DE el_GR es_ES fr_FR id_ID it_IT nl_NL pl_PL pt_BR pt_PT ro_RO ru_RU 2022-11-25 00:31:37 +00:00
Alexey Sokolov da31468309 Update message in clientnotify to tell what ID is that
See #1843
2022-11-24 20:02:51 +00:00
Christian Heusel 5eb2be278d formatting commit
clang-format --style=file -i test/ModulesTest.cpp
2022-11-17 18:35:34 +01:00
Christian Heusel 876b3d4151 split up the option into two separate ones 2022-11-17 18:30:16 +01:00
Christian Heusel 1e90b8a185 re-add the ip to the user message 2022-11-17 18:11:36 +01:00
Christian Heusel 5fb8891da4 implement the new notification logic
related to https://github.com/znc/znc/issues/1840
2022-11-07 23:19:17 +01:00
Alexey Sokolov fecdd98958 Add support SWIG 4.1.0, drop support for < 4.0.1
https://bugs.gentoo.org/878587
2022-11-05 13:02:12 +00:00
ZNC-Jenkins 78216c4c01 Update translations from Crowdin for pl_PL 2022-07-06 00:29:07 +00:00
Alexey Sokolov d902aa7129 Merge pull request #1833 from DarthGandalf/pycmd
Rename cmd/desc to command/description
2022-07-05 21:38:29 +01:00
ZNC-Jenkins 2bd3fb1729 Update translations from Crowdin for bg_BG de_DE el_GR es_ES fr_FR id_ID it_IT nl_NL pt_BR pt_PT ro_RO ru_RU 2022-07-05 00:30:02 +00:00
Alexey Sokolov e0c05ddb63 Rename cmd/desc to command/description
Ref #1832
2022-07-04 23:16:22 +01:00
Ernestas Kulik 94f1c32729 modules: modpython: Implement Module.AddCommand()
Currently, there is no usable wrapper for CModCommand for use within
bindings, so this commit adds a proxy class that adds itself as a
callback and allows implementing Python classes to implement commands
via __call__().

A completely synthetic example:

import znc

class foo(znc.Module):
    module_types = [znc.CModInfo.UserModule]

    def OnLoad(self, args, message):
        self.AddHelpCommand()
        self.AddCommand(FooCmd)

        return True

class FooCmd(znc.Command):
    cmd = 'foo'
    args = foo.t_d('bar')
    desc = foo.t_d('baz')

    def __call__(self, line):
        self.GetModule().PutModule('I have been foo’d!')

Fixes https://github.com/znc/znc/issues/198
2022-07-04 07:28:24 +03:00
ZNC-Jenkins fab1bb1bd5 Update translations from Crowdin for de_DE 2022-03-20 00:30:35 +00:00