Commit Graph

4657 Commits

Author SHA1 Message Date
Kyle Fuller 2d2672693a block_motd: Update internal state when server has no MOTD
Otherwise if we request MOTD and the server doesn't have one the module
would have incorrect state.
2017-03-30 13:34:25 +02:00
Kyle Fuller 45a6329312 block_motd: Fix tracking of accepting motd from server
When the module is loaded globally or per-user the
`m_bTemporaryAcceptMotd` would be used to store state on connecting to
an MOTD which could lead to timing issues of a full or partial MOTD
being incorrectly sent to another server while another user requested
motd via the module.

This commit will now track this state per IRCSock so if another
connected user requests an MOTD and another server sends an MOTD it will
not lead to MOTDs being incorrectly unblocked.
2017-03-30 13:34:25 +02:00
Alexey Sokolov aefc97d09a Merge pull request #1383 from Phansa/master
Adding comments to modules, updating dates to 2017
2017-03-23 22:49:29 +00:00
Adeet 6ba9b13271 updating comments 2017-03-23 18:47:36 -04:00
Cizzle 29d4f20485 Refactor duplicate code in crypt module. (#1386) 2017-03-16 21:36:19 +00:00
Cizzle ab34760613 crypt: Add Get/SetNickPrefix commands (#1382)
Hide the internal keyword from ListKeys
2017-03-15 18:28:00 +00:00
Phansa 4555d8774c Adding comments to modules 2017-03-12 20:42:59 -04:00
Phansa a0a3479d2f Adding liscene information 2017-03-12 20:39:58 -04:00
Phansa 3189ce7f8a Welcome to 2017
Welcome to 2017

temp

temp2
2017-03-12 20:34:26 -04:00
Alexey Sokolov 7feac39896 Merge branch 'master' of github.com:znc/znc 2017-03-12 21:16:23 +00:00
Alexey Sokolov a0909595a4 Merge branch '1.6.x' 2017-03-12 21:16:05 +00:00
Alexey Sokolov c6485cddc9 Revert version to 1.6.x 2017-03-12 21:08:00 +00:00
Alexey Sokolov 0267082eaa 1.6.5 znc-1.6.5 2017-03-12 21:00:29 +00:00
Alexey Sokolov c40d4a4efb ZNC 1.6.5-rc1 znc-1.6.5-rc1 2017-03-03 23:28:35 +00:00
Adeet Phanse 879c813d58 Adding some comments to blockuser module (#1380) 2017-03-03 23:25:54 +00:00
Alexey Sokolov 500927fc10 Fix docs generation on travis
Thanks to @psychon for noticing this
2017-03-02 22:58:07 +00:00
Alexey Sokolov 9e941cb972 Fix test for autoconf build 2017-03-01 23:37:23 +00:00
Christophe Beauval cba58ca862 Add DH1080 keyexchange to the crypt module.
Close #1378
2017-03-01 01:16:06 +00:00
Alexey Sokolov 88d1e27cc6 Fix CMake build:
* VERSION_EXTRA is now supported
* znc-buildmod uses the correct ZNC library instead of one in /usr/share
2017-02-28 23:01:09 +00:00
Uli Schlachter 74bfbea6f2 Speed up FixCVE20149403 test
The test was unnecessarily waiting for ZNC to join some channel, which
took a long time.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-02-28 13:07:15 +01:00
Uli Schlachter 7b2a127841 Fix tests relying on table output
The output style of tables was recently changed. This broke the
ControlpanelModule integration test. Adapt some of the patterns used so
that they work again.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-02-28 12:59:00 +01:00
Uli Schlachter 1543635abf integration tests: Improve message when ZNC is missing
Previously, "more or less unrelated" things would fail. After this
change, also a message is printing that gives a hint on what went wrong.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-02-28 12:57:13 +01:00
Alexey Sokolov c2c85b2335 Make more modules translateable (#1354) 2017-02-25 12:14:21 +00:00
Alexey Sokolov 80c24b335d Update a comment 2017-02-25 12:13:24 +00:00
Alexey Sokolov ad8d07a87a Improve *autoreply responses to Show and Set commands.
Also make it translatable (#1354)
2017-02-25 11:52:39 +00:00
Alexey Sokolov 6ddede7779 Revert 3382543917 and
00ddcd302f

ListChans for now will behave as before, and ShowChan isn't currently
needed.

See #914
2017-02-24 23:49:18 +00:00
Alexey Sokolov a44aa0c699 Revert tables to how they were in 1.4
See #914
2017-02-24 23:49:18 +00:00
Cizzle fc450cb486 Don't use the same or overlapping NickPrefix as StatusPrefix in the crypt module
Don't use a key which is a valid nickname, now changed to "@nick-prefix@" instead.
If you had loaded the crypt module before, the old settings will be converted.

Also check if the nick-prefix and status-prefix aren't the same or overlapping, "*" or "." are then used depending on either value. If they would be the same, you would be messaging a module instead of a user.
And if they'd overlap, depending on the nick, you could be messaging a module as well.
2017-02-22 15:25:08 +00:00
Alexey Sokolov 96dcde4329 Merge branch 'master' of github.com:znc/znc 2017-02-19 10:34:55 +00:00
Alexey Sokolov 455b5f8076 Merge branch '1.6.x' 2017-02-19 10:33:01 +00:00
Alexey Sokolov 0679957340 Fix regression of 1.6.4 which caused crash in modperl/modpython.
See #1283
2017-02-19 10:30:44 +00:00
Christophe Beauval 02db444941 Add /install_manifest.txt and /install_manifest_*.txt to .gitignore. 2017-02-14 22:58:27 +00:00
Jos Ahrens 14e68299fe cli: help: sort arguments alphabetically (#1367)
Changes the output of `znc --help` to order the arguments
in alphabetical order.
2017-01-21 15:36:12 +00:00
Jos Ahrens 9635658258 [sasl] Do not try to convert entire "verbose" command to bool. (#1365)
Fixes #1291 for the stable branch.

Ref. https://github.com/znc/znc/commit/9864b2716a0274e046867aba83962b979d078bdd
for the original fix by psychon with dgw, this is merely a non-cherry-pick backport
as I realized too late it was already fixed elsewhere in the same manner.
2017-01-21 15:32:38 +00:00
Jos Ahrens a7be8fcd9c autoconf/makefile: alphabetically sort the modules we compile (#1368)
This alphabetically sorts the modules/ we compile so
that it's easier to see where we're currently at.
Has no effect with `make -j2`

Fixes #1358
2017-01-21 15:30:09 +00:00
Alexey Sokolov ec52dccace Merge branch 'master' of github.com:znc/znc 2017-01-15 23:07:25 +00:00
Alexey Sokolov c7c878adc8 Fix build on macOS Sierra (10.12)
Rename OS X to macOS
Add Sierra to Travis
2017-01-15 23:04:55 +00:00
Alexey Sokolov 55adbc896e Travis: the last job should wait for the rest, not the first one
Mitigate timeouts
2017-01-15 23:04:42 +00:00
Jos Ahrens 188b091514 SASL: More informative help command for Set.
With #1338, the parameter username was made optional, but the help
was not changed to reflect this.

ref. https://github.com/znc/znc/pull/1338#issuecomment-270563035
2017-01-12 22:12:01 +00:00
Alexey Sokolov 4416ef9731 Add a TODO
[skip ci]
2017-01-12 00:08:48 +00:00
Alexey Sokolov 1bb0199ec4 Fix missing renames in #1191 2017-01-08 10:06:21 +00:00
Alexey Sokolov ded8a00358 Fix detection of _FILE_OFFSET_BITS in CMake
The test wrongly succeeded in C instead of correctly failing in C++
That caused off_t to be different types in core and in modpython on
32-bit systems, and modpython couldn't load with undefined symbol.
2017-01-08 03:09:36 +00:00
Alexey Sokolov e7b9ab2746 Make cyrusauth translateable (#1354) 2016-12-27 09:20:20 +00:00
Alexey Sokolov b4b085dc2d Partially fix type of function pointer.
Found using UBSan.
Full fix would require adding visibility attribute to CUser,
CIRCNetwork, CModule, CModuleEntry, CModInfo *and* make sure these
attributes are visible to enough code.
The second statement is more difficult to fulfill, because forward
declaration of CUser is not enough, because the attribute is on class
definition. So Modules.h would need to include many other includes.

Probably it should be changed at some point.

See http://stackoverflow.com/questions/27976687/clangs-ubsan-function-pointer-is-this-illegal
2016-12-26 20:09:13 +00:00
Jos Ahrens 1b5bd128cc stickychan: Timer down to 60 seconds from 180. 2016-12-26 20:08:52 +00:00
Jos Ahrens e80582326a stickychan: stop checking so often, increase delay to once every 3 minutes 2016-12-26 20:08:52 +00:00
Alexey Sokolov 2fcde9f2e1 Fix a couple of issues pointed out by https://scan.coverity.com/ 2016-12-26 17:22:09 +00:00
Alexey Sokolov b666931883 Add an option to change ping timeout time.
Fix #979
2016-12-26 15:49:26 +00:00
Alexey Sokolov d9c1da8a68 Make it possible to translate arguments in help text of module commands
Ref #1354
2016-12-25 21:11:02 +00:00
Alexey Sokolov b5fde609c4 Make adminlog and alias translatable, rerun 'make translate'
Ref #1354
2016-12-25 21:02:42 +00:00