Commit Graph

4240 Commits

Author SHA1 Message Date
J-P Nurmi cb84ecac9c Port CIRCSock::ParseISupport() to use CMessage 2015-09-20 23:22:01 +02:00
J-P Nurmi 6ad7cdb4a2 Resolve #818: "Got ZNC?" is a little weird real name 2015-09-20 23:22:01 +02:00
J-P Nurmi f29363752b Travis CI: reduce the amount of builds to 5
So all (max 5) builds can run in parallel. This should speedup the CI
rounds a lot.

Candidates:
- Linux/Clang/normal
  We already have address and thread sanitizer -enabled Clang builds on
  Linux, and a normal Clang build on OSX.
- OSX/USE_SYSTEM_OPENSSL
  The system OpenSSL headers have been deprecated since OSX 10.7, and
  are being removed in OSX 10.11.
2015-09-20 23:19:12 +02:00
J-P Nurmi 439ea98da9 crypt: add missing override [-Winconsistent-missing-override] 2015-09-20 23:18:31 +02:00
Alexey Sokolov 3032664a65 Merge pull request #813 from anthonyryan1/master
Expand crypt module to cover Notices, Actions & Topics
2015-09-20 19:36:44 +01:00
Anthony Ryan baeb1daa69 Expand crypt module to cover Notices, Actions & Topics
Improves compatibility with mircryption.
2015-09-20 14:14:26 -04:00
J-P Nurmi 078eef5ba9 partyline: send RPL_ISUPPORT regardless of network or IRC connection
The behavior of IRC clients is unpredictable if they don't get the
appropriate CHANTYPES for partyline channels. Thus, send RPL_ISUPPORT
with the appropriate CHANTYPES also when a client is not connected to
a network, or when the network is not connected to IRC.
2015-09-20 02:19:58 +02:00
J-P Nurmi c0f6b68c05 Merge branch '1.6.x' 2015-09-20 02:19:46 +02:00
J-P Nurmi 3058a0e69a Fix warnings [-Winconsistent-missing-override] 2015-09-19 21:01:20 +02:00
Alexey Sokolov f848569309 Merge pull request #1065 from Mikaela/znc.service.in
znc.service.in: start after network-online.target
2015-09-19 19:25:32 +01:00
Mikaela Suomalainen f54ad1f220 perform: say "number" instead of "nr"
I think it's inconsistent that perform uses abbreviation "nr" of "number"
while it talks about "command" instead of "cmd".
2015-09-19 16:32:40 +02:00
Alexey Sokolov 41f1e317c4 Merge pull request #1080 from RealRancor/add_httponly_flag
Set HttpOnly for session cookie
2015-09-19 13:55:19 +01:00
J-P Nurmi cde9053205 Fix memset() in CUtils::ParseServerTime() 2015-09-18 09:26:58 +02:00
J-P Nurmi 683379df7d CUtils::ParseServerTime(): fix handling of invalid timestamps 2015-09-18 01:16:01 +02:00
J-P Nurmi f1973fe81b MessageTest: prefer EXPECT_THAT and ContainerEq 2015-09-18 01:02:12 +02:00
J-P Nurmi 74f6d3839b Merge branch '1.6.x' 2015-09-17 23:18:20 +02:00
KindOne 6aed12f17d autovoice: Check for autovoices when we are opped.
Fixes #120
2015-09-17 23:17:00 +02:00
J-P Nurmi 57fb58bf71 Fix CModeMessage::GetModes()
Thanks to KindOne for finding the bug. CModeMessage::GetModes()
must trim the colon that CMessage::GetParams() may include.
2015-09-17 13:26:24 +02:00
Mikaela Suomalainen 2c0dfbbe18 CONTRIBUTING.md: ask -D with issues in connection
Issue #1081 made me notice this was missing.

Thanks for the wording suggestion @Zarthus

[CI SKIP]
2015-09-13 02:35:13 +02:00
J-P Nurmi 6d42675a3a CMessage::SetParams(): forget the colon
1a3e9ec made CMessage try to retain the colon if the original message
contained one. We should not, however, remember that when the params
are replaced entirely. Consider for example an extended-join message
that is made suitable for a client that doesn't have extended-join
capability:

    CMessage msg(":nick!ident@host JOIN #chan account :real name");
    msg.SetParams({msg.GetParam(0)});
    msg.ToString(); // ":nick!ident@host JOIN :#chan"
2015-09-13 02:17:57 +02:00
J-P Nurmi 08ad9c40cc QueryTest: fix signed vs. unsigned comparison warnings 2015-09-13 02:15:10 +02:00
RealRancor 41f83e8de4 Set HttpOnly for session cookie 2015-09-11 16:51:07 +02:00
J-P Nurmi 75ee9cec62 Add QueryTest 2015-09-10 01:44:06 +02:00
J-P Nurmi b3bb6fb5db GTest: force the simple internal regex engine...
...to get consistent behavior on all platforms.
2015-09-10 01:44:06 +02:00
J-P Nurmi 73d5f382f8 Docs for the CMessage-based module hooks 2015-09-10 01:38:53 +02:00
J-P Nurmi 66febcc7e8 Docs: leave out anything besides include/ and src/
Leave out various module implementation detail classes and the whole
gtest & gmock class sets from the docs. Csocket is included meanwhile
it's still exposed in the public API.
2015-09-10 01:38:53 +02:00
J-P Nurmi 7f03484899 CClient: add ATTACH command
The main benefit is that (unlike JOIN) ATTACH allows wildcards.
It's also nicely symmetric with DETACH.
2015-09-10 01:12:19 +02:00
J-P Nurmi 832430659f CClient: share the chan detaching code 2015-09-10 01:12:19 +02:00
J-P Nurmi 7916efa997 CClient: share the chan matching code 2015-09-10 01:12:19 +02:00
J-P Nurmi 1a3e9ecb86 Resolve #1045: Make CMessage retain the colon
If the colon was there when parsed, stick it back even if it would be
technically unnecessary.
2015-09-10 00:21:04 +02:00
J-P Nurmi db64e34e28 Merge branch '1.6.x' 2015-09-09 18:49:47 +02:00
Jos Ahrens b67f9182d6 Fix stickychan joining inaccessable channels.
Channels that raise this error are unlikely to ever be unblocked,
either due to a jupe, or because the name contains illegal characters.
2015-09-09 18:47:56 +02:00
J-P Nurmi ba76e041b9 Add OnNumericMessage() module hook (close #1069) 2015-09-07 16:41:15 +02:00
J-P Nurmi d6a94936b9 Merge pull request #1054 from jpnurmi/cmessage-type
Add CMessage::GetType()
2015-09-07 10:13:50 +02:00
J-P Nurmi 1a7cf9d6ba CIRCSock: make the message handlers private
These should not be called from the outside of the class.
2015-09-07 00:00:29 +02:00
J-P Nurmi fc981fa44c MessageTest: test CTargetMessage in one place 2015-09-07 00:00:28 +02:00
J-P Nurmi f71a0a213e Add IRCSockTest 2015-09-07 00:00:28 +02:00
J-P Nurmi c7cb7fca3f Cleanup CIRCSock::ReadLine() 2015-09-07 00:00:28 +02:00
J-P Nurmi dae21026fa CIRCSock::OnErrorMessage() handler 2015-09-07 00:00:28 +02:00
J-P Nurmi 41b71e3a40 CIRCSock::OnPing/PongMessage() handlers 2015-09-07 00:00:28 +02:00
J-P Nurmi da06aacd4d CIRCSock::OnNumericMessage() handler 2015-09-07 00:00:28 +02:00
J-P Nurmi 0446aaa929 CIRCSock::OnModeMessage() handler 2015-09-07 00:00:27 +02:00
J-P Nurmi b8dbdb0a4b CIRCSock::OnWallopsMessage() handler 2015-09-07 00:00:27 +02:00
J-P Nurmi 1346718308 CIRCSock::OnCapabilityMessage() handler 2015-09-07 00:00:27 +02:00
J-P Nurmi d3f42cabeb CIRCSock::OnInviteMessage() handler 2015-09-07 00:00:27 +02:00
J-P Nurmi 05fbb52173 CIRCSock::OnAccountMessage() handler 2015-09-07 00:00:27 +02:00
J-P Nurmi d556a29218 CIRCSock::OnAwayMessage() handler 2015-09-07 00:00:27 +02:00
J-P Nurmi d53a2d1f24 CIRCSock::OnTextMessage() handler 2015-09-07 00:00:27 +02:00
J-P Nurmi 236bd7249f CIRCSock::OnActionMessage() handler 2015-09-07 00:00:26 +02:00
J-P Nurmi 74be5522d1 CIRCSock::OnCTCPMessage() handler 2015-09-07 00:00:26 +02:00