William Pitcock
03dba44854
Automated merge with ssh://hg.atheme.org//hg/charybdis
2008-04-01 16:15:06 -05:00
William Pitcock
e69385f4fa
fix highest_fd nonsense
2008-04-01 16:14:47 -05:00
William Pitcock
75d600888f
Clean these modules up.
2008-04-01 16:12:16 -05:00
Jilles Tjoelker
7018b86a12
More changes for libratbox.
2008-04-01 23:11:11 +02:00
Jilles Tjoelker
0e7cb7e6a1
Various changes for libratbox.
2008-04-01 23:03:14 +02:00
Jilles Tjoelker
555ac41f14
Change over some dlink functions.
2008-04-01 22:54:08 +02:00
William Pitcock
b2f0da886e
ircs[n]printf -> rb_s[n]printf
2008-04-01 15:38:40 -05:00
William Pitcock
ba200635a6
Make this compile, but lots of warnings.
2008-04-01 15:26:43 -05:00
William Pitcock
7cdb0a09b9
ircsprintf -> rb_sprintf
2008-04-01 15:21:53 -05:00
William Pitcock
5b96d9a6b9
start making this compile
2008-04-01 15:18:48 -05:00
William Pitcock
d56734d6dd
bork bork bork
2008-04-01 15:14:08 -05:00
William Pitcock
1f112a04f4
Allow ENCAP GCAP to be reused to broadcast capability changes to the network.
...
This means that modules can now be added which change CAPs.
2008-04-01 11:45:46 -05:00
Jilles Tjoelker
7b7e1640de
Move PRIVS command from extensions to modules (shows effective oper privs).
2008-03-31 00:39:14 +02:00
Jilles Tjoelker
22f2f68a07
Use ERR_DISABLED in CHGHOST and STATS e.
2008-03-30 20:02:55 +02:00
Jilles Tjoelker
85550587fb
Unbreak /quote help stats as an oper (all where oper and user help are different).
...
Remove symlink optimization, so helpfiles equal for
opers and users are loaded into memory twice, which
is not an issue.
2008-03-29 23:38:22 +01:00
Jilles Tjoelker
9fc04df8c8
Use ERR_NOPRIVS when an oper is not allowed to see admin-only /stats.
...
This includes opers without the admin flag and admins on other servers.
2008-03-29 23:09:45 +01:00
Jilles Tjoelker
5b0c1b47c6
Fix compiler warning.
2008-03-29 21:36:11 +01:00
Jilles Tjoelker
48a038f4b5
Fix Invalid CAP subcommand error if the user has no nick.
2008-03-18 23:47:37 +01:00
Jilles Tjoelker
3f6e258775
target change: use fnv32 hash of UID instead of pointer to identify clients
...
This way, the information remains valid after a split.
For clients on TS5 servers, the nick is used; this is
not much of a problem because these are on pseudoservers
and not assumed to change nick much at all.
2008-03-16 00:39:49 +01:00
Jilles Tjoelker
43f8445df3
Show some target change statistics in /stats t.
...
- the number of messages blocked by target change on
this server since it was started
- the number of IPs currently subject to a a lower
target limit on this server (these expire over time)
2008-03-02 17:03:56 +01:00
William Pitcock
aed5ce90a5
Remove CHFL_DEOPPED entirely.
...
Since charybdis 2.3 will require TS6, emulating legacy semantics is
unnecessary.
2008-02-27 14:08:27 -06:00
Jilles Tjoelker
81daf9555b
Remove CHFL_DEOPPED check from TMODE.
...
This check sometimes blocks oper overrides (OMODE).
It does not stop any hacks that the channelTS check
already stops, because CHFL_DEOPPED is only set when
this server ignored an @ in an incoming SJOIN (the
SJOIN is then propagated without the @) and this
can only be because of a TS difference.
2008-02-25 00:05:15 +01:00
Jilles Tjoelker
8c39f0bf04
Fix a UID leak.
2008-02-04 23:56:13 +01:00
Jilles Tjoelker
8170176a78
Remove silly a2client_p, entirely pointless since User.server removal.
...
(and was pointless since Client.servptr was introduced)
2008-01-14 23:59:46 +01:00
Jilles Tjoelker
e4b9c8e115
Add two missing colons for sendto_one_notice().
2008-01-06 00:12:51 +01:00
Jilles Tjoelker
0a621c4b5b
If stats k is masked for nonopers, treat stats k and K the same.
...
There is no point in forcing two stats requests for just
one line of information.
2008-01-05 17:00:00 +01:00
Jilles Tjoelker
cdd5b26189
Remove idle time checking (auto disconnecting users idle too long).
2008-01-01 23:04:34 +01:00
William Pitcock
c5c2f506c1
Replace int fd; in local client object with an fde object.
2007-12-28 15:06:33 -06:00
Jilles Tjoelker
922aa82644
More helpful ERROR server notices.
...
- Do not use hide_error_messages for certain "safe" ERRORs.
- If hide_error_messages hides an ERROR from a handshake,
send a server notice anyway, but without the message
text.
- Send server notices about ERRORs from handshakes network
wide if it was a remote connect.
2007-12-28 01:31:56 +01:00
Jilles Tjoelker
7f27e3163d
Never allow a duplicate kline; always allow a wider kline.
...
Duplicate klines are now disallowed regardless of
no_redundant_klines. There is a somewhat hackish check
to see if the new kline is wider than the existing one.
2007-12-26 00:51:22 +01:00
Jilles Tjoelker
d922ddedfd
When removing a temp kline, show removed mask, not given mask.
...
Example: when temp klining 10.0.0.0/16 and unklining 10.0.0.1/16,
it showed 10.0.0.1/16 being removed before, and shows
10.0.0.0/16 now.
2007-12-26 00:18:22 +01:00
Jilles Tjoelker
a58cdfa3f4
Send a few more snotes about remote connects netwide.
...
(bad password for server, SID exists)
2007-12-25 16:19:54 +01:00
Jilles Tjoelker
bd2b16f309
Use "SID Exists" instead of "Server Exists" where appropriate.
2007-12-25 01:16:18 +01:00
Jilles Tjoelker
7d1f9131fb
Consolidate duplicate channel mode flags tables to one.
2007-12-25 01:00:20 +01:00
Jilles Tjoelker
34c10ff5f5
Make the notable TS delta snote netwide as this may screw up the entire network.
2007-12-25 00:18:34 +01:00
Jilles Tjoelker
62433315e9
Put full detail in the SQUIT reason for invalid TS version or excessive TS delta.
2007-12-25 00:16:26 +01:00
Jilles Tjoelker
f2c1b06bcf
Make the other notices to snomask +b network wide.
...
(with the exception of flooding on an &channel)
2007-12-24 22:43:47 +01:00
Jilles Tjoelker
a6f4368b96
Add mass_notice oper priv, enabled by default for compatibility.
...
Controls /wallops and masked notices/privmsgs.
2007-12-24 21:47:05 +01:00
Jilles Tjoelker
095328a742
Move various flags from flags2 to flags.
2007-12-24 20:58:55 +01:00
Jilles Tjoelker
420b2c9a10
Remove dot_in_ip6_addr config option.
2007-12-24 18:24:23 +01:00
Jilles Tjoelker
544cde9033
Don't allow opers to bypass can_create_channel check.
...
Modules need to do so themselves, if desired.
2007-12-18 00:17:25 +01:00
Jilles Tjoelker
326217c4d0
Don't allow faking adminwall via wallops, in case anyone loads it.
2007-12-17 18:50:22 +01:00
Jilles Tjoelker
1ebe6ffc92
Add resv oper priv, enabled by default for compatibility.
2007-12-17 02:20:14 +01:00
Jilles Tjoelker
e8149a2c64
Make /rehash help work again.
2007-12-12 22:26:17 +01:00
Jilles Tjoelker
35f6f850b6
Remove reject entries on unkline/ungline/unxline.
...
When a user is rejected, remember the hash value of the
ban mask (for klines/glines, hash value of the user part
XOR hash value of the host part) with the rejected IP;
if the kline/gline/xline is removed, remove rejects with
the same hash value also. Note that this does not happen
for expiries; this is deliberate.
Rejects for no auth{} or dnsbl put a hash value of 0;
they cannot be removed selectively.
2007-12-08 21:54:51 +01:00
William Pitcock
9802490cbb
help system rework, part 1
2007-12-03 19:35:55 -06:00
William Pitcock
b37021a45e
nickdelay -> dictionary.
2007-12-03 10:59:25 -06:00
Jilles Tjoelker
6444959578
Fix receiving TS5 client introductions.
...
This was broken due to User.server removal.
2007-12-01 19:11:44 +01:00
Jilles Tjoelker
1328da8618
Speed up /unresv. Rehash bans now only happens if explicitly requested.
2007-11-30 23:35:48 +01:00
Jilles Tjoelker
60c96e64c1
Clean up m_xline a bit.
2007-11-30 23:35:14 +01:00