Commit Graph

4689 Commits

Author SHA1 Message Date
Alexey Sokolov 46c5b2884e Don't send PART to client which sent QUIT
Reported by milky
2017-06-20 21:58:37 +01:00
Rubin 96c92ef8ca Change default flood rates to match RFC1459, prevent excess flood problems
I noticed that the default network flood rates are wrong (for most
networks). It has been very standard since the beginning of IRC to use a
value of 2 seconds per line, with a 10 line head start. Almost all
networks work this way, and if you don't follow, having a lot of
channels or a lot of clients connected to ZNC results in excess flood
disconnections and much frustration for the user.

I think you should make the default value for these 2 and 9 instead of 1
and 4 so that this nasty bug doesn't hit people who will not know how to
debug it. You find these same types of settings built into every IRC
client. 2 and 10 is the standard. 2 and 9 provides a slight buffer so
there is no mistake.

Thanks
-Rubin

Close #1416
2017-06-01 08:22:21 +01:00
Alexey Sokolov 10bfece38c Switch znc.in URLs to https 2017-05-30 22:32:01 +01:00
Alexey Sokolov ef5ace9b86 Travis: Also count code coverage of modpython 2017-05-28 08:52:37 +01:00
Alexey Sokolov fa79f69be9 CMake: use pkg-config to find python.
Makes it easier to override its path.
2017-05-28 01:27:14 +01:00
Alexey Sokolov cb4c254ba7 Fix travis deploy step
See #1407
2017-05-25 07:59:29 +01:00
Alexey Sokolov 7f146afcd3 Use Travis stages
Fix #1407
2017-05-25 00:50:25 +01:00
Alexey Sokolov 78d97e834b Add TODO 2017-05-24 08:10:40 +01:00
Alexey Sokolov 01b2b441df CodeCov: ignore test files in /cmake 2017-05-24 01:01:00 +01:00
Alexey Sokolov a037a98f83 CodeCov: ignore generated modperl/modpython files 2017-05-24 01:01:00 +01:00
Alexey Sokolov e97562eeaf Don't wait for Jenkins and AppVeyor in CodeCov. 2017-05-24 00:36:19 +01:00
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