Bram Matthys
13fffa4e1a
split all the local client stuff to acptr->local. makes it a lot easier to catch bugs.
...
If the IRCd crashes then it's likely not by this change but rather an existing issue that was previously gone unnoticed.
2015-07-19 12:48:18 +02:00
Bram Matthys
f22cef97d4
Why do we have those unnecessary (SSL *) casts everywhere? Poof. Gone.
2015-07-15 15:54:36 +02:00
Bram Matthys
6c0ebb5bd3
Protection against linking race conditions is back again (IOTW: allow very rapid re-linking), but only if your network is fully 3.4.x (actually: current git unreal34 or later)
...
Re-implemented PROTOCTL SERVERS= which nenolod ripped out (#4355 ).
Add 2nd argument to PROTOCTL EAUTH=servername,unrealprotocol
Change UnrealProtocol from 2350 to 2351
2015-07-10 21:57:13 +02:00
Bram Matthys
e8dfb284a1
Replace parv[0] with sptr->name. Don't use parv[0] anymore.
...
I went through all 500+ of them by hand as to avoid introducing bugs... we'll see ;)
2015-07-10 12:17:05 +02:00
Bram Matthys
2f8cb55e47
Add extended SWHOIS support. Allows multiple swhoises and tracking of who/what set the swhois.
...
Added swhois_add / swhois_delete functions which also take care of broadcasting
New remove_oper_privileges() function, will move the rest to use this (svsnoop svsmode etc)
Not finished yet...
2015-07-09 16:26:52 +02:00
Bram Matthys
15977e011d
remove umode 'g' (failops), we have snomasks and oper umode for this.
2015-07-09 14:09:02 +02:00
Bram Matthys
00dd10c744
transform more failops call
2015-07-09 14:05:06 +02:00
Bram Matthys
fe14e21175
Update all MOD_TEST/MOD_INIT/MOD_LOAD/MOD_UNLOAD calls to new format
2015-07-08 18:02:19 +02:00
Bram Matthys
5286b50c19
We already set the IP in add_connection, no need to do that in check_init again.
...
Fix bug where "insecure link" message was shown despite localhost.
2015-06-22 20:49:40 +02:00
Bram Matthys
678268f2a3
Allow multiple masks in link::incoming::mask
...
Make linking code use unreal_mask functions as well. Some fixes.
2015-06-03 10:39:33 +02:00
Bram Matthys
efdefc4eb8
mute non-SSL warning for localhost (won't bother about other cases)
2015-05-25 13:14:44 +02:00
Bram Matthys
04727556c7
Show warning if non-SSL. Improve link error (on authentication failure). Auto-convert link::incoming::mask from like '1.2.3.4' to '*@1.2.3.4'.
2015-05-25 13:06:18 +02:00
Bram Matthys
db97b23bcb
move to a single password entry in link block:
...
"password in link block should be plaintext OR should be the SSL fingerprint of the remote link (=better)"
2015-05-25 10:54:05 +02:00
Bram Matthys
8049136379
Restructure the entire link { } block ( #4032 ). Initial commit (missing autoconnect, ssl, etc).
2015-05-25 10:19:15 +02:00
Bram Matthys
d12b6962a5
convert to more understandable code
2015-05-23 09:50:45 +02:00
Travis McArthur
aea09603a4
Remove USE_SSL macro and associated code
...
We no longer support non-SSL builds, remove related code
2015-05-20 02:48:34 -04:00
Bram Matthys
de3f9b9cc2
- Add server synching and broadcast functions for new ModData system.
...
- Also added an example module for coders (m_mdex), not compiled by default.
2014-06-01 20:06:28 +02:00
Bram Matthys
101d2dd6a3
Big 3.4.x commit containing bug fixes and enhancements. Modularizing
...
user & channel modes. Fixing Windows build. Etc..
2014-05-11 20:56:02 +02:00
William Pitcock
95137d435a
- use SIDs and UIDs in server burst entirely if possible
2013-05-25 11:17:17 +00:00
William Pitcock
ae46850e2b
- send UIDs on burst and new user to PROTO_SID servers.
2013-05-23 10:10:53 +00:00
William Pitcock
2ccaea07b5
- SID command: ensure we use non-SID name as origin on SERVER message (since it's for backwards compat)
2013-05-21 07:46:27 +00:00
William Pitcock
1853eaeeae
- Quick attempt at cleaning up the mess for SIDs.
2013-05-21 07:17:39 +00:00
William Pitcock
7f156ad566
- add remote SIDs to ID hashtable
2013-05-21 06:52:45 +00:00
William Pitcock
afdf5d780a
- Replace ircsprintf() with bounds-checking ircsnprintf(), patch from FalconKirtaran. ( #4208 )
2013-05-21 06:26:52 +00:00
William Pitcock
42a0071b2b
- implement SID handler
2013-05-21 03:42:22 +00:00
William Pitcock
61fe014771
- Remove sendto_server_butone() and friends, now everything uses sendto_server(). ( #4202 )
...
Patch from FalconKirtaran.
2013-05-20 01:21:45 +00:00
William Pitcock
b413848524
- TOK_FOO removal pass 2
2013-05-19 21:40:45 +00:00
William Pitcock
ca86485927
- Remove token parameter from CommandAdd().
2013-05-19 21:27:26 +00:00
William Pitcock
6085877aa7
- Remove TS2ts() and %B usage in formatter strings. Patch from FalconKirtaran ( #4197 , #4198 ).
2013-05-19 08:36:49 +00:00
William Pitcock
b2214aba9f
- Remove SJB64 stuff, patch from FalconKirtaran ( #4190 ).
2013-05-19 08:09:02 +00:00
William Pitcock
c41ca43145
- Remove ziplinks support, patch from FalconKirtaran. ( #4189 )
2013-05-16 06:36:13 +00:00
William Pitcock
d7989a1b5b
- Remove IsToken() references, pass 2.
2013-05-13 05:18:43 +00:00
William Pitcock
441c5743a8
- Remove old Servers list maintained by ALN code
2013-05-09 01:24:37 +00:00
William Pitcock
39c117a695
- Remove numerics from server protocol, part 1
2013-05-09 00:25:02 +00:00
William Pitcock
582496be70
- Split out servers into global_server_list.
...
Now client_list only includes clients, and global_server_list only includes servers.
2013-05-06 03:53:27 +00:00
Bram Matthys
61cfb5ac3e
- Windows: Fix strange linking bug. Outgoing connects from a Windows
...
IRCd caused a garbled SERVER protocol message, causing 'cannot find
server' errors and killing of users. Reported by Sunkat (#4183 ).
2013-04-04 23:07:04 +02:00
William Pitcock
f9a78be185
- Remove WebTV code, part 1. ( #3948 )
2013-01-14 03:21:42 -06:00
William Pitcock
f80bfb6d74
- Typo fix in m_server_synch().
2012-12-01 22:27:09 -06:00
William Pitcock
2ea5301896
- Rework the listener system to not use Client table entries.
2012-11-25 02:46:39 +00:00
William Pitcock
4f8c49d2fb
- Stop iterating using LastSlot in m_server.
2012-11-24 23:24:30 +00:00
William Pitcock
90802ddafa
- Add unknown_list for tracking unknown clients.
2012-11-24 21:55:37 +00:00
William Pitcock
024ef23ec6
- Move serv_fdlist accounting over to new server_list.
2012-11-24 19:56:10 +00:00
William Pitcock
f09b1ac4d4
- Rename aClient.client_list to aClient.client_node to avoid confusion
2012-11-21 23:03:28 +00:00
William Pitcock
9853fa54f4
- Rework the client management code to use a circular queue and set of
...
circular queues for hashtable.
2012-11-21 22:49:32 +00:00
William Pitcock
ab5e766d9c
- Replace calls to strncpyzt() macro with more secure strlcpy().
...
This was done using Coccinelle, the semantic patch was:
@@
expression src, dst, len;
@@
- strncpyzt(src, dst, len);
+ strlcpy(src, dst, len);
2012-11-21 03:22:29 +00:00
William Pitcock
98ad590a7f
- Remove nextping, nextconnect, nextblah stuff. Use proper events instead.
2012-11-12 09:35:11 +00:00
William Pitcock
b26207df50
- Add support for proper FD accounting (rewrite of the fdlist code).
...
This is the first step to adding evented I/O. Infact, writing the evented I/O code
should now be quite easy.
2012-10-05 03:42:44 +00:00
William Pitcock
5360e2ffa5
- Add support for server-enforced mode locks (MLOCK).
...
This allows the IRCd to enforce MLOCKs that are set by services, which
eliminates clashes between users setting modes and services enforcing
it's mlock on channels. (#3055 )
2012-05-04 12:47:59 +02:00
Bram Matthys
d272d2d6a0
- Services coders: Added support for ESVID. Instead of a number you can
...
now store a string (of max NICKLEN size) as service stamp. See
protoctl.txt and serverprotocol.html in doc/technical for more
information.
Patch from nenotopia (#3966 ).
2011-12-25 14:26:53 +01:00
Bram Matthys
1e5e60d635
- Fixed race condition / reference count issue where an outgoing server connect
...
would cause the IRCd to crash. Reported by Monk (#0003913 ).
2010-06-21 12:27:45 +00:00