Commit Graph

4678 Commits

Author SHA1 Message Date
Alexey Sokolov 73899e5d3a Refactor coverage builds in Travis.
Use both Gcov and LLVM-based source coverage.
Codecov supports merging results from multiple builds.
2017-05-24 00:35:58 +01:00
Fusl Dash 2e90c9ae9e Update link to Configuration wiki page 2017-05-14 08:51:48 +01:00
Alexey Sokolov f1c721cef2 Switch coverage to CodeCov 2017-05-12 00:39:57 +01:00
Alexey Sokolov 98a1a2ddf8 Update jenkins config 2017-05-12 00:15:50 +01:00
Alexey Sokolov 3b9f39f543 Merge pull request #1406 from elyscape/feature/custom-tags
Support custom message tags
2017-05-10 23:29:44 +01:00
Eli Young 6d0ec644d0 Support custom message tags
This provides a way for modules to register message tags and updates the
core to send tags to clients if the relevant capabilities are enabled.
2017-05-08 18:01:46 -07:00
Alexey Sokolov f9f9dec1ad Merge branch 'master' of github.com:znc/znc 2017-04-30 15:02:10 +01:00
Alexey Sokolov 18da03b66a Fix clean cmake build again
8b48465df4 did it wrong
2017-04-30 15:01:45 +01:00
Kyle Fuller dbc8d4f714 Merge pull request #1399 from kylef/kylef/missingmotd
missingmotd: Include nick in IRC numeric command
2017-04-28 17:01:18 +01:00
Alexey Sokolov 8b48465df4 Fix clean cmake build 2017-04-25 21:11:48 +01:00
Alexey Sokolov c28d5adf43 Merge pull request #1395 from elyscape/feature/log-user-quits
Log user quit messages
2017-04-22 15:33:15 +01:00
Eli Young d32ac7c184 Log user quit messages
Since OnIRCDisconnected() doesn't include the quit message, and OnQuit()
isn't called when the user quits, we need to hook OnSendToIRCMessage().
2017-04-21 17:45:16 -07:00
Alexey Sokolov 9146ea6187 Merge pull request #1398 from elyscape/feature/onsend-message-hooks
Add OnSendToIRCMessage and OnSendToClientMessage
2017-04-22 01:10:38 +01:00
Eli Young 823ac07240 Add OnSendToIRCMessage and OnSendToClientMessage
This also alters PutClient such that the CMessage variant handles
sending messages, rather than the CString variant. As a side bonus, this
gives callers better information on whether the message was sent to the
client. Additionally, it eliminates the need for a hook to let modules
set the tags sent to a client, as that can now be done inside
OnSendToClientMessage.
2017-04-18 15:43:16 -07:00
Alexey Sokolov f37aa308e1 Merge pull request #1396 from elyscape/fix/on-user-quit-hook
Fix OnUserQuitMessage documentation
2017-04-16 10:22:41 +01:00
Kyle Fuller 0bb95c87b1 missingmotd: Include nick in IRC numeric command
Since the nick argument is missing, "MOTD File is missing" is taking the
nicks place and could lead to client confusion that the 422 command is
sent to "MOTD File is missing".
2017-04-14 19:29:27 +01:00
Eli Young b46702ec3b Fix OnUserQuitMessage documentation 2017-04-10 14:45:00 -07:00
Alexey Sokolov 57b912f645 Merge pull request #1361 from kylef/kylef/block_motd
Fix block_motd incorrectly tracking state on which user requested MOTD
2017-04-10 00:16:16 +01:00
Phansa c0c6705f5d Welcome to 2017
Welcome to 2017
2017-04-10 00:11:40 +01:00
Eli Young 20b635aad7 Don't try to quit multiple times (#1392)
Calls to CIRCSock::Quit() eventually result in the object's destructor
being called, which itself calls CIRCSock::Quit() again. Avoid sending
multiple quit messages to the remote server by checking if the
underlying socket is already marked for closing.
2017-04-10 00:10:00 +01:00
Kyle Fuller 1449b021a8 block_motd: Command names should be uppercase 2017-03-30 13:34:25 +02:00
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