12876 Commits

Author SHA1 Message Date
Attila Molnar
a7a0f69c6b Add StreamSocket::SendQueue::moveall() for moving data between sendqs 2016-08-08 15:04:17 +02:00
Attila Molnar
87602cd040 Add support for multiple IOHooks per StreamSocket 2016-08-08 15:02:28 +02:00
Attila Molnar
fd573d17ca Call StreamSocket::OnDataReady() from only one place
Call it whenever the recvq gets bigger than it was before the read
2016-08-08 14:39:09 +02:00
Attila Molnar
6466e3093a Extract code that reads data into a recvq from StreamSocket::DoRead() into ReadToRecvQ() 2016-08-08 14:37:22 +02:00
Attila Molnar
d8ac63cd83 Extract code that flushes the sendq from StreamSocket::DoWrite() into FlushSendQ() 2016-08-08 14:35:00 +02:00
Attila Molnar
eef55acb1d Add StreamSocket::GetModHook() for obtaining the IOHook belonging to a given module
Use it to simplify logic in all modules using or providing IOHooks
2016-08-08 14:31:49 +02:00
Attila Molnar
3a11a742ba Pass sendq to OnStreamSocketWrite 2016-08-08 14:28:02 +02:00
Attila Molnar
019914b67d Predeclare IOHookProvider, remove iohook.h include from socket.h 2016-08-08 14:24:40 +02:00
Peter Powell
4a12fc9d4b Add a method which calculates the maximum mask length. (#1171) 2016-07-22 12:26:11 +02:00
Christian Höltje
a46d0c010d Tell git to store .bat files as CRLF (#1030) 2016-07-22 12:20:44 +02:00
0x277F
c8602a4993 stripcolor now strips from part messages (#1175) 2016-07-22 12:12:05 +02:00
Attila Molnar
aa2fa90c57 Merge pull request #1187 from SaberUK/master+431
Fix a minor oversight in ERR_NONICKNAMEGIVEN.
2016-06-27 16:52:13 +02:00
Peter Powell
1ca1c2c653 Fix a minor oversight in ERR_NONICKNAMEGIVEN. 2016-06-27 15:48:47 +01:00
Attila Molnar
292c2b90c8 Merge pull request #1186 from SaberUK/master+build-system-cleanup
Pass INSPIRCD_VERBOSE through the environment to unit-cc.
2016-06-27 16:14:30 +02:00
Attila Molnar
1c9f97682f Merge pull request #1182 from SaberUK/master+431
Fix sending the wrong numeric when an empty new nick is received.
2016-06-27 16:13:18 +02:00
Peter Powell
0d7d6a9d09 Pass INSPIRCD_VERBOSE through the environment to unit-cc. 2016-06-27 00:35:16 +01:00
Peter Powell
ff53aa7282 Fix cleaning files generated by configure.
This is an oversight from f79a55616b5ff05d4f2e6b031a17be5668d1d3ea.
2016-06-27 00:35:15 +01:00
Peter Powell
5785411ac5 Fix sending the wrong numeric when an empty new nick is received. 2016-06-22 10:27:18 +01:00
Attila Molnar
c050eb2d45 Add mbedTLS SSL module 2016-06-15 18:23:04 +02:00
Attila Molnar
8314fdddce Update .gitignore to reflect LDAP module changes 2016-05-03 14:30:25 +02:00
Attila Molnar
fb66fb5ce3 Merge branch 'master+sslconnmsg' 2016-04-30 16:54:37 +02:00
Attila Molnar
1e4b53a286 m_spanningtree Send snotice with the negotiated ciphersuite when connected using SSL 2016-04-28 17:12:06 +02:00
Attila Molnar
e7e9f350ac Deduplicate code for on connect SSL ciphersuite NOTICE by moving it into m_sslinfo 2016-04-28 17:10:10 +02:00
Attila Molnar
f91da925b5 Export the GetCiphersuite() method from the SSL modules 2016-04-28 17:06:16 +02:00
Attila Molnar
b96329dc3b Add SSLIOHook::IsSSL() to determine whether a socket is using SSL or not
Use it in a few places
2016-04-28 17:04:33 +02:00
Attila Molnar
6cfe4011ec Merge branch 'master+sasloffline' 2016-04-26 15:02:50 +02:00
Attila Molnar
72501adb5c m_sasl Advertise the sasl capability only if the target server is online
Issue #812
2016-04-25 13:24:40 +02:00
Attila Molnar
2595b35cc2 m_sasl Add ServerTracker class for tracking sasl_target 2016-04-25 13:23:29 +02:00
Attila Molnar
afefc6bfe9 m_spanningtree Call the OnServerLink hook from TreeServer constructor 2016-04-25 13:18:02 +02:00
Attila Molnar
70ac122cba m_spanningtree Call the OnServerSplit hook from TreeServer::SQuitInternal() so it runs for all lost servers 2016-04-25 13:16:40 +02:00
Attila Molnar
657fcc1f6b m_spanningtree Call the OnServerSplit hook from the OnUnloadModule() handler on unload 2016-04-25 13:15:06 +02:00
Attila Molnar
53f266a35f m_spanningtree Don't try to call the OnServerSplit hook when the module is being unloaded 2016-04-25 13:12:03 +02:00
Attila Molnar
60e73a3832 m_spanningtree Ignore incoming BURST command in CONNECTED state 2016-04-13 12:05:48 +02:00
Attila Molnar
e22e40d862 m_spanningtree Fix FJOIN forwarding 2016-04-13 11:50:06 +02:00
Attila Molnar
69b13d17e6 m_spanningtree Resync servers when they recreate a channel outside of burst 2016-04-13 11:46:55 +02:00
Attila Molnar
db8d5f98d6 m_spanningtree Allow IJOIN with lower TS 2016-04-13 11:46:35 +02:00
Attila Molnar
2706a993b3 Refactor topic setting logic to go through Channel::SetTopic() in all cases
- Pass topic set time and optionally the setter to SetTopic()
- Don't do anything if the topic is changed by a local user to what it is currently
2016-04-11 15:53:01 +02:00
Attila Molnar
b25070bf5e Merge pull request #1168 from SaberUK/master+fix-configure-cache-parser
Fix "use of uninitialized value $key in hash element" error.
2016-04-04 19:33:37 +02:00
Peter Powell
c0ec56e9c7 Fix "use of uninitialized value $key in hash element" error. 2016-04-04 13:51:32 +01:00
Attila Molnar
9180e4664e Merge pull request #1167 from SaberUK/master+collision
Rename vague build environment variables to prevent collisions.
2016-04-04 14:31:04 +02:00
Peter Powell
4ad12dd44e Rename M to INSPIRCD_MODULE. 2016-04-04 13:20:21 +01:00
Peter Powell
4c089bd681 Rename T to INSPIRCD_TARGET. 2016-04-04 13:20:21 +01:00
Peter Powell
eaa3de48d2 Rename D to INSPIRCD_DEBUG. 2016-04-04 13:20:21 +01:00
Peter Powell
be74a8c8d2 Rename V to INSPIRCD_VERBOSE. 2016-04-04 13:20:21 +01:00
Peter Powell
30bd7bb39f Rename PURE_STATIC to INSPIRCD_STATIC. 2016-04-04 13:20:21 +01:00
Attila Molnar
932748db6d Remove unused ProtocolInterface::SendTopic() 2016-03-30 12:40:12 +02:00
Attila Molnar
804d58e200 Remove ProtocolInterface::PushToClient() 2016-03-30 12:38:36 +02:00
Attila Molnar
f67aba687b Remove User::SendText() and overrides completely 2016-03-30 12:37:29 +02:00
Attila Molnar
c0cd24b658 m_showfile Replace User::SendText() call with WriteCommand() 2016-03-30 12:34:41 +02:00
Attila Molnar
514a9edadf m_spanningtree Remove PUSH handler 2016-03-30 12:32:02 +02:00