J-P Nurmi
3cb2834cc5
Fix STATUSMSG buffering
2015-09-21 15:41:20 +02:00
J-P Nurmi
565d04a8ef
Resolve 'make test' warnings
...
Fix our own, and hide csocket, gtest & gmock related.
2015-09-21 15:41:20 +02:00
Mikaela Suomalainen
f2c53b64e1
.travis.yml: enable fast_finish
...
When fast_finish is True, Travis will inform that the build has failed
when one build fails which is usually desirable instead of waiting for
everything to finish.
However builds that haven't finished yet will continue, this doesn't
stop them or do anything else to them.
`travis lint` passes so,
[CI SKIP]
2015-09-21 16:40:45 +03:00
J-P Nurmi
e879203d54
Merge branch '1.6.x'
...
Conflicts:
modules/bouncedcc.cpp
2015-09-20 23:36:44 +02:00
Mikaela Suomalainen
c8ab811a29
cert: add description for the "info" command
2015-09-20 23:31:37 +02:00
J-P Nurmi
c83a41ce89
CClient: message handlers
2015-09-20 23:22:03 +02:00
J-P Nurmi
4d3b47f2b1
Refactor CClient::ReadLine() to take advantage of CMessage::Type
2015-09-20 23:22:03 +02:00
J-P Nurmi
0c6215df9e
CClient: use CModeMessage
2015-09-20 23:22:03 +02:00
J-P Nurmi
658db6bbe6
Make CMessage::ToString() use GetParams()
...
Avoids having the same loop in two places.
GetParams() was under consideration to be removed after the CMessage
porting work is done, but it's starting to look like it's here to stay.
There are cases, such as mode messages, where "get all params starting
from position N" is handy.
2015-09-20 23:22:03 +02:00
J-P Nurmi
ecb9b21055
Move message tags related code from CUtils to CMessage
2015-09-20 23:22:03 +02:00
J-P Nurmi
7d10ad2625
CBuffer: add CMessage-based API
2015-09-20 23:22:03 +02:00
J-P Nurmi
cbd860c2a9
Add CMessage::Equals()
...
Compares sender, command, and parameters. Not timestamp nor tags.
2015-09-20 23:22:02 +02:00
J-P Nurmi
c223d3a500
Unit test CClient::PutClient(CMessage)
2015-09-20 23:22:02 +02:00
J-P Nurmi
467d48cb45
Share the unit test classes
2015-09-20 23:22:02 +02:00
J-P Nurmi
dce6d4f0ea
Make CClient::PutClient() handle multi-prefix
2015-09-20 23:22:02 +02:00
J-P Nurmi
f7802209ae
Make CClient::PutClient() handle extended-join
2015-09-20 23:22:02 +02:00
J-P Nurmi
f4c22aff6c
Incorporate CIRCSock::ForwardRaw353() into CClient::PutClient()
2015-09-20 23:22:02 +02:00
J-P Nurmi
69f1138052
CClient::PutClient(): handle away-notify and account-notify
2015-09-20 23:22:02 +02:00
J-P Nurmi
0f2a37707f
CIRCSock::OnNumericMessage(): replace Token(n) with GetParam(m)
...
CMessage has already done the work to split the line to params.
2015-09-20 23:22:01 +02:00
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
3c2ec45d4c
Fix more warnings [-Winconsistent-missing-override]
2015-09-20 17:30:48 +02:00
Alexey Sokolov
9493964a3d
Merge pull request #1087 from Mikaela/route_replies
...
route_replies: make the timeout error more clear
2015-09-20 15:16:13 +01:00
Alexey Sokolov
073e538094
Merge pull request #1104 from Mikaela/module-descriptions
...
Add descriptions for missing commands in lastseen & certauth & route_replies
2015-09-20 15:14:14 +01:00
Mikaela Suomalainen
f1cc0e4492
lastseen & certauth & route_replies: add missing descriptions
2015-09-20 16:28:50 +03:00
Mikaela Suomalainen
535d28bf32
route_replies: make the error more clear
2015-09-20 16:27:31 +03: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