Commit Graph

1943 Commits

Author SHA1 Message Date
Jilles Tjoelker e883cf07e7 Remove code for unregistered clients from check_pings_list()
because it is only called for lists of registered clients.
2007-12-28 16:17:39 +01:00
Jilles Tjoelker 372b2193ec 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 d23bc305d6 Make remote numerics to channels work.
Note that +D clients do not get these.  This is consistent
with how ircu treats remote numerics and with how we treat
server notices from other servers, but not with how locally
generated notices and numerics are sent also to +D clients.
2007-12-26 22:46:43 +01:00
Jilles Tjoelker df7a3250b1 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 4c171a9c72 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 fd4ba65e17 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 00fe56c547 Add chm_quietunreg_compat extension, makes cmode +-R an alias for +-q $~a. 2007-12-25 13:56:05 +01:00
Jilles Tjoelker 63c26c4b5a Add no_locops extension to disable LOCOPS (force everyone -l). 2007-12-25 13:27:41 +01:00
Jilles Tjoelker 16e0550f25 Use "SID Exists" instead of "Server Exists" where appropriate. 2007-12-25 01:16:18 +01:00
Jilles Tjoelker 2a719c44c0 Consolidate duplicate channel mode flags tables to one. 2007-12-25 01:00:20 +01:00
Jilles Tjoelker 757f5aa8fc 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 55b5711c56 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 05beabd14f Remove "<server> had been connected for <time>" snote.
For registered servers, it is entirely redundant with the
"<server> was connected for <time>.  <traffic>" snote, and
only sent for some ways of closing; for handshakes, you
already know that it had not been connected for long.
2007-12-24 23:29:01 +01:00
Jilles Tjoelker 9f8d60cc83 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 625b1e582d Document the mass_notice oper privilege. 2007-12-24 22:04:18 +01:00
Jilles Tjoelker fa7964705f Document the resv oper privilege. 2007-12-24 21:59:21 +01:00
Jilles Tjoelker c13a2d9ad3 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 333d73ff28 Rearrange flags2 to make room for 3 more oper privileges. 2007-12-24 21:16:19 +01:00
Jilles Tjoelker 2d2c402d0b Move various flags from flags2 to flags. 2007-12-24 20:58:55 +01:00
Jilles Tjoelker 91e46e62e5 Remove various unused macros. 2007-12-24 20:40:12 +01:00
Jilles Tjoelker 6f068dbd15 Remove unused CONF_FLAGS_DO_IDENTD and FLAGS_NEEDID. 2007-12-24 20:32:41 +01:00
Jilles Tjoelker 5fcb6b5d88 Remove unused flag FLAGS_CHKACCESS. 2007-12-24 20:26:39 +01:00
Jilles Tjoelker 965dfbd38a Branch merge. 2007-12-24 18:24:49 +01:00
Jilles Tjoelker 420b2c9a10 Remove dot_in_ip6_addr config option. 2007-12-24 18:24:23 +01:00
William Pitcock de845813f9 update IDEAS for suggestions on how you can help with the I/O refactoring. 2007-12-22 16:38:09 -06:00
William Pitcock c1e5bc4117 comm_locate_fd(), not comm_lookup_fd(). 2007-12-22 16:30:06 -06:00
William Pitcock 5cd74a3b6c linebuf_flush(): use fde_t's. 2007-12-22 16:28:05 -06:00
William Pitcock d877759f5b Make fde raw I/O functions act on the FDE object, not the FD directly. 2007-12-22 16:15:09 -06:00
William Pitcock 5893220fdc wtf mercurial, tbh. 2007-12-22 16:08:34 -06:00
William Pitcock 7b3c01255b Automated merge with ssh://hg.atheme.org//hg/charybdis 2007-12-22 16:06:35 -06:00
William Pitcock 868590746d - add IOReadFunc and IOWriteFunc types.
- add fde::read_impl, fde::write_impl.
  (defaults to read(2) and write(2) with raw FDs at the moment;
   this will be revised to act on the fde later.)
2007-12-22 16:05:51 -06:00
William Pitcock 404d3a3a62 Fix includes. 2007-12-22 14:24:00 -06:00
William Pitcock 64513f3675 Automated merge with ssh://hg.atheme.org//hg/charybdis 2007-12-22 14:05:45 -06:00
William Pitcock 2cac65a378 Add some GNUTLS helper code. 2007-12-22 14:05:03 -06:00
Jilles Tjoelker 95d36ef54b It is ok to send 402 to local clients for any hunt_server operation. 2007-12-22 00:20:54 +01:00
William Pitcock 38b91e8915 again, fbfile.c hasn't existed in a long time. 2007-12-21 11:14:08 -06:00
William Pitcock 207aba5c3d fbfile.c hasn't existed in a long time. 2007-12-21 11:13:49 -06:00
William Pitcock 29344cc799 Remove rfc1459, because IETF documentation does not contain any permission notices allowing modification. 2007-12-21 11:09:55 -06:00
William Pitcock 201f4ef72f We need to do that in another spot. Yuck. 2007-12-20 16:59:52 -06:00
William Pitcock d60ba3dabf Handle EBADF condition. yuck! 2007-12-20 16:56:07 -06:00
William Pitcock 66df8c7271 Fix a lot of bad assumptions in the epoll code (this needs major testing). 2007-12-20 16:37:57 -06:00
Jilles Tjoelker adb3f9d000 Deny $o extbans with data, to be better compatible with future meanings of it. 2007-12-18 23:00:42 +01:00
Jilles Tjoelker aee6f89036 Add adminwall from ratbox, as an extension. 2007-12-18 22:54:18 +01:00
Jilles Tjoelker 1ef5b43053 Require resv oper privilege to set cmode +L or +P. 2007-12-18 00:24:05 +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 b47db00e58 createauthonly: allow opers through explicitly 2007-12-18 00:15:54 +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 33b310b376 Make the epoll check work more reliably.
Submitted by spb.
2007-12-13 00:43:31 +01:00
Jilles Tjoelker c422d2a067 Silence harmless compiler warning. 2007-12-13 00:20:06 +01:00