J-P Nurmi
58fc0e91d7
Add CCTCPMessage::IsReply()
2015-09-07 00:00:24 +02:00
J-P Nurmi
ec952024d7
Add CModeMessage
2015-09-07 00:00:24 +02:00
J-P Nurmi
fa894a86b0
Add CNumericMessage
2015-09-07 00:00:24 +02:00
J-P Nurmi
0faafbf3bf
Merge pull request #1056 from jpnurmi/handlecap
...
Implement CClient::HandleCap() using CMessage (ref #1013 )
2015-09-04 20:49:11 +02:00
J-P Nurmi
2880368825
Merge pull request #1055 from jpnurmi/onctcpreplymessage
...
Add missing CModules::OnCTCPReplyMessage()
2015-09-03 20:11:38 +02:00
J-P Nurmi
2b18d6ee38
Merge pull request #1020 from jpnurmi/traffic
...
Calculate per-network traffic (#963 )
2015-09-02 01:01:13 +02:00
J-P Nurmi
a79acacfad
Add missing CModules::OnCTCPReplyMessage()
2015-09-02 00:51:05 +02:00
J-P Nurmi
453401eef4
Implement CClient::HandleCap() using CMessage (ref #1013 )
2015-09-02 00:08:43 +02:00
J-P Nurmi
31ba15d686
CClient::ReadLine(): use CMessage
2015-08-31 00:24:30 +02:00
J-P Nurmi
e5b7f2c6df
Make CBufLine hold a CMessage internally
2015-08-31 00:24:30 +02:00
J-P Nurmi
f1dead9ff3
Add OnUserXxxMessage(CXxxMessage) module hooks
2015-08-30 15:50:12 +02:00
J-P Nurmi
82375eed65
Add CMessage::Clone()
...
Due to (intentional) lack of CFooMessage::operator=(CMessage), it was
a bit clumsy to do such copy-conversions:
CMessage Copy = Message;
CJoinMessage& JoinMsg = static_cast<CJoinMessage&>(Copy);
// ...
vs.
CJoinMessge JoinMsg;
JoinMsg.Clone(Message);
// ...
Alternatively, copy ctor(CMessage) and assignment operator=(CMessage)
could have been added to all CMessage subclasses. I've been trying to
avoid that, to make these operations very explicit. It has helped a
lot so far by preventing accidental copies.
2015-08-30 15:50:12 +02:00
J-P Nurmi
de4ffb180c
Add JoinMessage::GetKey() & SetKey()
...
This will be useful for implementing the upcoming OnUserJoinMessage()
module hook, that is allowed to modify the key.
2015-08-30 15:50:12 +02:00
J-P Nurmi
55385a5d58
Add CTargetMessage: a base class for "targeted" priv/chan messages
...
This will be useful for implementing the upcoming OnUserXxxMessage()
module hooks, that are allowed to modify the message target.
2015-08-30 15:50:12 +02:00
J-P Nurmi
320abef756
Merge CChanMessage & CPrivMessage to... CTextMessage
...
This naming is a bit hairy. I chose CTextMessage because this type of
message carries a text argument. Alternatively, it could be also called
CPrivateMessage, because the IRC protocol calls it PRIVMSG. On the other
hand, ZNC module hooks use the "Priv" naming convention for private
messages. It would look a bit weird to have OnChanMsg(CPrivMessage)...
More details and reasoning of the merge in the previous commit message.
2015-08-30 15:50:12 +02:00
J-P Nurmi
3976651c35
Merge CChan+PrivAction, CChan+PrivCTCP, CChan+PrivNotice
...
OnUserAction(), OnUserCTCP(), and OnUserNotice() don't separate private
private and channel messages. A module could even redirect a message by
modifying its target, so technically, if they were two distinct types,
the type of a message could change on the way.
The original reason for the separation was that at some point during
CMessage development, GetChan() didn't exist in CPrivXxx, but only in
CChanXxx message types. To achieve cleaner implementation, the getter
was later promoted to CMessage and made return nullptr for non-channel
specific messages. From this point of view, the separation is also no
longer necessary since the CPrivXxx and CChanXxx types are API-wise
identical with each other.
2015-08-30 15:50:12 +02:00
J-P Nurmi
0ecc0d464f
Make params optiona for the CMessage(CNick, CString, ...) ctor
...
Also fixes the build for Clang <= 3.4, broken by 9a7df7c .
2015-08-27 13:21:45 +02:00
Toon Schoenmakers
03e3920ced
Add options for log module to hide joins, quits and nick changes.
...
Fix #601
Close #613
2015-08-23 21:20:36 +01:00
Alexey Sokolov
672e8c5731
Add OnRawMessage()
2015-08-23 00:52:27 +01:00
J-P Nurmi
e1ae565e6f
Fix GetText() for CTCP [ACTION]
...
Just like the recent problem with smileys; TrimLeft() is not the same
than TrimPrefix(), and TrimRight() is not the same than TrimSuffix().
2015-08-23 00:48:35 +02:00
J-P Nurmi
66053e24ff
Add CZNC::GetNetworkTrafficStats()
2015-08-22 01:27:23 +02:00
J-P Nurmi
38fb4cc444
Calculate per-network traffic ( #963 )
2015-08-22 01:27:23 +02:00
Alexey Sokolov
e546cedaa2
Merge pull request #1035 from jpnurmi/server-time
...
Make ZNC request server-time when available (close #839 )
2015-08-20 22:31:24 +01:00
J-P Nurmi
1f11b10b70
Make ZNC request server-time when available ( close #839 )
2015-08-18 01:42:42 +02:00
J-P Nurmi
d19a040f2d
Remove flawed Add/Del/List/BindHost(s) ( close #983 )
2015-08-17 15:35:29 +02:00
J-P Nurmi
d77d21cfb9
Document CClient::PutClient()
2015-08-16 13:38:33 +02:00
J-P Nurmi
d0a58ff239
Pass CMessage to buffer playback hooks
2015-08-15 13:03:56 +02:00
J-P Nurmi
8a7c79bb78
Pass known/compatible tags to clients
2015-08-15 12:33:23 +02:00
J-P Nurmi
c17c8c022b
Buffer message tags and the original timestamps
2015-08-15 12:28:38 +02:00
J-P Nurmi
ff181a4a85
Add specialized types and hooks for the most common msgs
...
PRIVMSG, NOTICE, JOIN, PART, QUIT, NICK, KICK, TOPIC
2015-08-15 12:27:06 +02:00
J-P Nurmi
a06bf1c985
Introduce a Message type ( #506 )
2015-08-15 12:26:16 +02:00
J-P Nurmi
51caa5c4cf
Add CUtils::ParseServerTime()
2015-08-15 12:26:16 +02:00
J-P Nurmi
a13b4a8e46
CZNC: add missing SSL-related getters and setters
...
- SSLCiphers
- SSLProtocols
- SSLCertFile
2015-08-05 01:05:46 +02:00
J-P Nurmi
f266b54e6e
Fix ClearTrustedFingerprints() casing
2015-08-05 00:44:51 +02:00
J-P Nurmi
66413ae516
Add CIRCNetwork::ClearTrustedFingerPrints()
2015-08-05 00:35:16 +02:00
J-P Nurmi
dce289a5d4
CUser: add API for removing and clearing allowed hosts
2015-08-04 16:09:27 +02:00
J-P Nurmi
9fe1027d8a
Add missing CChan::GetNetwork()
2015-08-02 23:40:12 +02:00
J-P Nurmi
b16faf5058
Merge pull request #990 from jpnurmi/reset
...
Allow reseting channel specific AutoClearChanBuffer & Buffer settings
2015-08-01 12:30:36 +02:00
J-P Nurmi
015a8f6502
Merge branch '1.6.x'
...
Conflicts:
src/Client.cpp
znc-buildmod.in
2015-07-31 23:56:04 +02:00
J-P Nurmi
2098dc1f2c
Merge pull request #992 from jpnurmi/fail2ban
...
fail2ban: configurability & commands
2015-07-31 23:32:15 +02:00
J-P Nurmi
53d9161b20
Merge pull request #998 from jpnurmi/buffer
...
Resolve #967 : separate chan & query buffer size settings
2015-07-31 22:51:03 +02:00
J-P Nurmi
87ae630046
Merge pull request #991 from jpnurmi/initializer_list
...
Add initializer_list ctors for CString & MCString
2015-07-31 22:08:43 +02:00
Alexey Sokolov
baa798ce9f
Fix -DVERSION_EXTRA="foo"
...
It was broken since 58a34fa5ad (since ZNC 1.2)
2015-07-21 22:47:09 +01:00
J-P Nurmi
496a132e32
Resolve #967 : separate chan & query buffer size settings
2015-07-19 00:31:10 +02:00
J-P Nurmi
6246899c56
Add support for extended-join ( #316 )
2015-07-14 18:29:33 +02:00
J-P Nurmi
d070a6e644
Add support for account-notify ( #316 )
2015-07-14 17:02:16 +02:00
J-P Nurmi
f506a59993
Add TCacheMap::GetItems()
2015-07-13 23:51:25 +02:00
J-P Nurmi
1aba508298
Add initializer_list ctors for CString & MCString
2015-07-13 19:04:14 +02:00
J-P Nurmi
0d75018157
Allow reseting channel specific AutoClearChanBuffer & Buffer settings
...
The trick is to set the value to "-" in controlpanel. Notice that
controlpanel supports wildcards, so this can be used to easily
reset all channels back to defaults if desired.
2015-07-08 22:56:18 +02:00
J-P Nurmi
1fb321703d
Add away-notify support - close #315
2015-07-05 13:33:27 +02:00