1 2000-04-17 Kevin L. Mitchell <klmitch@mit.edu>
3 * ircd/jupe.c: support local deactivations of jupes
5 * ircd/gline.c: support local deactivations of glines
7 * include/jupe.h: JUPE_LDEACT allows jupes to be locally
8 deactivated; if they aren't locally deactivated, then it slaves to
9 the net-wide activation status; JupeIsRemActive() tests only
10 whether the jupe is active everywhere else
12 * include/gline.h: GLINE_LDEACT allows glines to be locally
13 deactivated; if they aren't locally deactivated, then it slaves to
14 the net-wide activation status; GlineIsRemActive() tests only
15 whether the gline is active everywhere else
17 * ircd/gline.c: detect overlapping G-lines; if an existing, wider
18 gline expires after the new one will, we drop the new one,
19 otherwise we add the G-line after that one (so the wide one will
20 apply first); if the new one contains an existing G-line and if it
21 will expire after the existing one, we drop the existing one to
24 * ircd/m_gline.c (mo_gline): opers could issue remote local
25 glines when CONFIG_OPERCMDS was off; fixed
27 2000-04-16 Kevin L. Mitchell <klmitch@mit.edu>
29 * ircd/m_jupe.c (mo_jupe): allow target argument to be dropped if
32 * ircd/gline.c: add flags argument to gline_activate and
33 gline_deactivate for future expansion
35 * ircd/m_gline.c: pass flags to gline_activate and
38 * include/gline.h: add flags argument to gline_activate and
41 * ircd/jupe.c: add flags argument to jupe_activate and
42 jupe_deactivate for future expansion
44 * include/jupe.h: add flags argument to jupe_activate and
47 * ircd/m_jupe.c: pass a flags argument to jupe_add instead of
48 local, active; pass flags to jupe_activate and jupe_deactivate
50 * include/gline.h: remove dead code
52 * ircd/gline.c: make gline expire times relative to CurrentTime,
53 since that should be monotonically increasing, instead of
54 TStime(), which can be set backwards, and which can therefore
55 cause an expire time to increase; make local glines be removed
56 instead of just deactivated; don't let gline_find() look for
57 user@host glines if the mask being looked up is a channel mask
59 * ircd/send.c (vsendcmdto_one): forgot to account for the case
60 where origin is a server and destination is a user
62 * ircd/jupe.c: make jupe expire times relative to CurrentTime,
63 since that should be monotonically increasing, instead of
64 TStime(), which can be set backwards, and which can therefore
65 cause an expire time to increase; make local jupes be removed
66 instead of just deactivated
68 * ircd/ircd_snprintf.c: d'oh, thanks for catching that; short for
69 limit is fine. any other warnings I should know about?
71 2000-04-15 Thomas Helvey <tomh@inxpress.net>
73 * ircd/*.c: const correctness and type safety cleanups to
74 get code to compile with C++ compiler. Still has
75 signed/unsigned comparison warnings.
77 2000-04-15 Greg Sikorski <gte@atomicrevs.demon.co.uk>
79 * ircd/userload.c: change <sys/time.h> include to <time.h> for
82 2000-04-14 Kevin L. Mitchell <klmitch@mit.edu>
84 * ircd/m_gline.c (mo_gline): d'oh, target isn't a numeric; use %C
87 * ircd/s_user.c: move gline_lookup function call into
88 register_user, where it'll have a username to lookup!
90 * ircd/m_gline.c: modify to utilize new sendcmdto_* series of
91 functions; also stuff send_error_to_client into return clauses
93 * ircd/m_jupe.c: modify to utilize new sendcmdto_* series of
94 functions; also use send_error_to_client where that makes sense
96 * ircd/jupe.c: modify to utilize new sendcmdto_* series of
97 functions; also use send_error_to_client where that makes sense
99 * ircd/gline.c: modify to utilize new sendcmdto_* series of
100 functions; also fix gline_lookup() to deal properly with remote
101 clients--boy, do struct Client and struct User need to be cleaned
104 * ircd/ircd_snprintf.c (doprintf): a dest of &me is a server,
107 * ircd/send.c: wrote sendcmdto_one(), vsendcmdto_one(), and
108 sendcmdto_serv_butone(), all utilizing the %v conversion of
111 * include/send.h: define IRC_BUFSIZE, max size of a message;
112 declare sendcmdto_one(), vsendcmdto_one(), and
113 sendcmdto_serv_butone()
115 * include/msg.h: define all the CMD_* constants needed to utilize
116 the new sendcmdto_* series of functions
118 * ircd/Makefile.in (SRC): list ircd_snprintf.c; run make depend
120 * ircd/gline.c: remove old, dead code.
122 * ircd/m_gline.c (mo_gline): disallow setting of global G-lines
123 unless CONFIG_OPERCMDS is enabled; disallow listing of all G-lines
124 (don't advertise proxies); remove dead code
126 * ircd/parse.c: oper handler for JUPE only lists jupes unless
127 CONFIG_OPERCMDS is enabled
129 * ircd/m_jupe.c (mo_jupe): don't compile mo_jupe() if
130 CONFIG_OPERCMDS is not enabled; we'll disable it in parse.c
132 * ircd/m_opmode.c (mo_opmode): if CONFIG_OPERCMDS is not enabled,
133 always return ERR_DISABLED
135 * ircd/m_clearmode.c (mo_clearmode): if CONFIG_OPERCMDS is not
136 enabled, always return ERR_DISABLED
138 * ircd/s_err.c: add error message to indicate disabled commands
140 * include/numeric.h (ERR_DISABLED): to indicate disabled commands
142 * doc/Configure.help: add documentation for CONFIG_OPERCMDS
144 * config/config-sh.in: add CONFIG_OPERCMDS, default both it and
145 CONFIG_NEW_MODE to 'y' for now
147 * ircd/gline.c (gline_list): fix a minor formatting bogon
149 * BUGS: since I fixed that bug, might as well mark it fixed.
151 * ircd/m_join.c: look up badchans with GLINE_EXACT
153 * ircd/m_gline.c: fix parc count problems; look up existing
154 G-lines with GLINE_EXACT; only set new lastmod when
155 activating/deactivating existing glines if old lastmod was not 0
157 * ircd/gline.c: forgot to copy the gline reason over; don't
158 propagate a gline with 0 lastmod if origin is user; add
159 GLINE_EXACT to force exact matching of gline mask
161 * ircd/ircd_snprintf.c (doprintf): forgot to deal with the zero
164 * ircd/s_conf.c (find_kill): gline_find() takes a char *userhost,
165 but gline_lookup() actually takes a client--d'oh.
167 2000-04-13 Thomas Helvey <tomh@inxpress.net>
168 * ircd/IPcheck.c: Back port BLMet's bugfix from 2.10.10
170 2000-04-13 Greg Sikorski <gte@atomicrevs.demon.co.uk>
172 * ircd/whocmds.c: Don't make idle flag default in /who, to prevent:
174 "Gte3 H*iwg Gte@212.49.240.217 :1 :0 I am the one that was."
177 * ircd/whocmds.c: Change idle time calc from socket idle to user
180 2000-04-13 Kevin L. Mitchell <klmitch@mit.edu>
182 * config/aclocal.m4 (unet_CHECK_TYPE_SIZES): check size of void *,
183 too, for ircd_snprintf.c
185 * include/ircd_snprintf.h: documentation for ircd_(v)snprintf, in
186 comments; mostly descended from the Linux manpage for printf, but
187 also documenting the extensions.
189 * ircd/ircd_snprintf.c: NULL dest is equivalent to going to a
190 client; make 'q' be the same as 'L'; remove __inline__; only
191 define EXTENSION if HAVE_LONG_LONG is defined
193 * include/handlers.h: declare m_gline()
195 * ircd/parse.c: gline can be called by users, but it only lists
198 * ircd/s_user.c (set_nick_name): resend gline if a remote server
199 introduces a glined client
201 * ircd/s_serv.c (server_estab): burst glines, too
203 * ircd/gline.c: fix up all the expire times to be offsets;
204 simplify gline_resend()
206 * ircd/m_gline.c: begin coding replacements for ms_gline(),
207 mo_gline(), and m_gline()
209 * ircd/gline.c (gline_add): allow *@#channel to work correctly;
210 also, prohibit local BADCHANs if LOCAL_BADCHAN not defined
212 2000-04-13 Greg Sikorski <gte@atomicrevs.demon.co.uk>
214 * tools/Bouncer/*: Add comments/documentation/tags.
215 * tools/Bouncer/*: Add debug defines, make task fork().
217 2000-04-12 Thomas Helvey <tomh@inxpress.net>
218 * ircd/s_err.c: Cleanup s_err.c make one table so we
219 don't have to do anything tricky to get an error string.
221 2000-04-12 Greg Sikorski <gte@atomicrevs.demon.co.uk>
222 * Add port bouncer for http (x/w)
224 2000-04-12 Kevin L. Mitchell <klmitch@mit.edu>
226 * ircd/s_conf.c (find_kill): replaced call to find_gline() with a
227 call to gline_find(); also used GlineReason() instead of direct
228 reference to structure member
230 * ircd/m_join.c (m_join): replace bad_channel() calls with calls
231 to gline_find(name, GLINE_BADCHAN), and also check to see if gline
234 * ircd/channel.c: nothing seems to be called anywhere...
236 * ircd/s_err.c: update a couple of replies to dovetail with new
239 * ircd/gline.c: begin complete re-implementation of gline.c along
240 the lines of the final design of jupe.c
242 * include/gline.h: begin complete re-implementation of gline.c
243 along the lines of the final design of jupe.c
245 * ircd/channel.c (mode_process_clients): fix "Deop of +k user on
248 * ircd/ircd_snprintf.c: my new snprintf()-like functions
250 * include/ircd_snprintf.h: my new snprintf()-like functions
252 2000-04-11 Thomas Helvey <tomh@inxpress.net>
253 * ircd/IPcheck.c: removed old dead code
254 * ircd/s_user.c (send_user_info): removed non-standard
255 user not found message for userhost/userip
257 2000-04-11 Greg Sikorski <gte@atomicrevs.demon.co.uk>
259 * ircd/s_err.c: Added missing quotes to ERR_DONTCHEAT numeric.
260 * doc/p10.html: Work on chapter 4.
262 2000-04-10 Kevin L. Mitchell <klmitch@mit.edu>
264 * ircd/channel.c (mode_parse_client): fix coredump on /mode
265 #foobar +o nosuchnick
267 2000-04-10 Perry Lorier <Isomer@coders.net>
270 2000-04-09 Thomas Helvey <tomh@inxpress.net>
271 * include/IPcheck.h: fix prototype
272 * ircd/s_user.c: fix usage of IPcheck_remote_connect
273 * ircd/IPcheck.c: removed unused args
275 2000-04-09 Thomas Helvey <tomh@inxpress.net>
276 * include/IPcheck.h: add proto for IPcheck_expire
278 * ircd/IPcheck.c: Rewrote
280 * ircd/ircd.c: Add IPcheck_expire to main message loop
282 * ircd/s_user.c: Redo target hashing, refactor target code
284 * include/numeric.h: Cleaned up numerics, added which ones are
285 in use by other networks and what they are in use for.
287 * ircd/channel.c: cleaned can_join(), allow anyone through anything
288 if /invited, simplified the function. Opers overusing OPEROVERRIDE
289 will get a message explaining to them not to cheat.
291 * ircd/m_join.c: cleaned up the various join functions, should be
292 a lot more efficient. Still needs work. Now assumes that s<->s
293 won't send it a JOIN 0. Service coders - note this and tread with
296 * ircd/m_stats.c: added Gte-'s stats doc patch.
298 * ircd/m_version.c: /version now returns the 005 numeric as well.
299 as requested by Liandrin.
302 2000-04-07 Kevin L. Mitchell <klmitch@mit.edu>
304 * ircd/m_clearmode.c: add include for support.h for write_log()
306 * configure: move ircd/crypt/* to tools/*
308 2000-04-06 Thomas Helvey <tomh@inxpress.net>
309 * ircd/s_auth.c: Shorten auth connect timeout to 60 seconds
310 set client host to server alias if connection from localhost
312 2000-04-06 Perry Lorier <isomer@coders.net>
313 * ircd/ircd.c: Fix core during pinging (oops)
315 2000-04-06 Perry Lorier <isomer@coders.net>
316 * ircd/send.c: fixed wrong ident being sent to channels bug.
317 * include/numerics.h: Updated some of the numerics from other
318 networks. Flagged some as 'unused' by undernet.
320 2000-03-30 Perry Lorier <isomer@coders.net>
321 * ircd/ircd.c: Lets see if this helps the ping problem at all.
322 * ircd/whocmds.c, /doc/readme.who: Added %l specifier to get idle
323 time for local clients. (as requested), extended who now returns all
324 the flags (@+!) so you can tell the complete state of a client.
326 2000-03-30 Thomas Helvey <tomh@inxpress.net>
327 * m_rping.c m_rpong.c: add Gte's rping/rpong fixes
329 2000-03-30 Perry Lorier <isomer@coders.net>
330 * ircd/parse.c: oops, missed opers.
332 2000-03-30 Perry Lorier <isomer@coders.net>
333 * ircd/parse.c: fixed mystifying ping bug thats been plaguing us
334 for so long. Remember: m_ping MUST be in the parse array. :)
336 2000-03-30 Perry Lorier <isomer@coders.net>
337 * ircd/ircd.c: test in check_pings was wrong. I move that we
338 disallow cvs commit after 10pm localtime....
340 2000-03-30 Perry Lorier <isomer@coders.net>
341 * ircd/m_pong.c: Fix it for servers too.
343 2000-03-30 Perry Lorier <isomer@coders.net>
344 * ircd/m_pong.c: Fix ping timeout bugs
346 2000-03-30 Perry Lorier <isomer@coders.net>
347 * ircd/channel.c: Bans had CurrentTime in their when field instead
350 2000-03-31 Thomas Helvey <tomh@ixpress.net>
351 * ircd/numnicks.c (SetXYYCapacity): fix for extended
354 2000-03-30 Perry Lorier <isomer@coders.net>
355 * ircd/m_nick.c: send kills both ways so when we add nick change
356 on collision we don't desync the network.
358 * ircd/map.c: Fixup the map a bit more.
360 2000-03-31 Kevin L. Mitchell <klmitch@mit.edu>
362 * ircd/m_clearmode.c (do_clearmode): Log the CLEARMODE to OPATH
364 * ircd/m_opmode.c: Log the mode changes to OPATH
366 * ircd/channel.c (modebuf_flush_int): Log the mode changes to
369 * include/channel.h (MODEBUF_DEST_LOG): Log the mode changes to
372 * doc/Configure.help: help text for CONFIG_LOG_OPMODE / OPATH
374 * config/config-sh.in: added OPATH for opmode log file
376 * ircd/m_clearmode.c (do_clearmode): updated uses of
377 modebuf_mode_string() for the new usage
379 * ircd/channel.c: added flag MODE_FREE and an int argument to
380 modebuf_mode_string() to indicate that the string must be free'd;
381 updated calls to modebuf_mode_string() for the new usage; called
382 collapse(pretty_mask()) on the ban string and use allocated memory
383 for it; added ban list length accounting; fixed a number of small
384 bugs in ban processing
386 * include/channel.h: added flag MODE_FREE and an int argument to
387 modebuf_mode_string() to indicate that the string must be free'd
389 * ircd/m_clearmode.c (do_clearmode): made sure clearmode removed
390 keys and limits that are set
392 2000-03-30 Perry Lorier <isomer@coders.net>
393 * ircd/ircd.c: rewrote check_pings() for maintainability
394 and speed. Also changed quit msg's so they don't have
395 redundant nick[host] info in them.
397 * ircd/send.c: Changed write errors to report what error
398 occured (if possible).
400 * ircd/gline.c: added gline comment to the quit.
402 * ircd/m_server.c: Added suggestions to server quits mentioning
403 what went wrong so the admin can fix it earlier instead of asking
406 * ircd/map.c: Changed m_map() to hide numerics, show a * beside
407 servers that aren't fully burst yet. And show '(--s)' for servers
410 * doc/example.conf: Fixed wrapped U:
412 2000-03-30 Kevin L. Mitchell <klmitch@mit.edu>
414 * ircd/m_mode.c (ms_mode): implemented a new m_mode in terms of
415 mode_parse() (version selectable at compile time)
417 * ircd/m_clearmode.c (mo_clearmode): clean_channelname(parv[1])
419 * ircd/m_opmode.c (mo_opmode): clean_channelname(parv[1])
421 * config/config-sh.in: add new config option to enable new m_mode
424 * doc/Configure.help: add documentation for new config option
427 * ircd/channel.c (mode_parse_client): /opmode #foobar -o -- 461
428 MODE -v : Not enough parameters
430 * ircd/m_clearmode.c (do_clearmode): do_clearmode() would remove
431 +k and +l even if they weren't set...
433 * ircd/m_opmode.c: implement the OPMODE command using mode_parse()
435 * ircd/channel.c: make mode_process_clients() clear the DEOPPED
436 flag; fix +s+p exclusivity; add MODE_ADD/MODE_DEL to flag list
437 for; test the 0-th member, not the i-th member, of the client
440 * ircd/m_clearmode.c (do_clearmode): use the new
441 mode_invite_clear() function
443 * ircd/channel.c: cleared up all the compile-time warnings and
446 * include/channel.h: added declarations for mode_ban_invalidate()
447 and mode_invite_clear()
449 * ircd/channel.c: finished mode_parse(), then broke it up into a
450 dozen or so helper functions to make the code easier to read
452 2000-03-29 Thomas Helvey <tomh@inxpress.net>
453 * ircd/ircd.c: refactor server initialization a bit, use
454 getopt for parsing command line, refactor init_sys, main,
457 * ircd/s_bsd.c: add functions for initialization to clean
458 up logic a bit and remove duplicated code.
460 * include/ircd.h: add struct for server process related
463 2000-03-29 Kevin L. Mitchell <klmitch@mit.edu>
465 * ircd/channel.c: initial definition of mode_parse(); flags to
466 prevent doing the same thing multiple times; helper method
467 send_notoper() to send a "Not oper"/"Not on channel" notice
469 * include/channel.h: declare mode_parse() and helper flags
471 * ircd/channel.c (modebuf_flush_int): fiddled with timestamp
472 sending to match the current action of set_mode() closely enough
473 that hopefully there won't be major conflicts
475 * ircd/channel.c (modebuf_flush_int): consolidated the mode string
476 building logic, reversed the order of the arguments to mode
477 commands to have '-' preceed '+'
479 2000-03-29 Thomas Helvey <tomh@inxpress.net>
480 * ircd/s_bsd.c (add_connection): don't disable socket options
481 let OS tune itself and allow important performance tweaks to
484 2000-03-28 Kevin L. Mitchell <klmitch@mit.edu>
486 * ircd/channel.c (modebuf_flush_int): use %d, not %-15d; I got
487 confused by set_mode, which is doing some really weird logic;
488 guess what I'm going to rewrite next? ;)
490 2000-03-28 Kevin L. Mitchell <klmitch@emc.com>
492 * include/channel.h: added MODE_SAVE for the bounds checking stuff
495 * ircd/channel.c: make modebuf_flush into modebuf_flush_int and
496 make it do bounds checking on the buffer; all modes are sent only
497 if the all parameter is 1; modebuf_flush is the exported wrapper
499 * include/channel.h: add BOUNCE, renumber flags to get a little
502 * ircd/channel.c (modebuf_flush): don't overload HACK2, add
503 BOUNCE; send DESYNCH message
505 2000-03-27 Kevin L. Mitchell <klmitch@emc.com>
507 * ircd/m_clearmode.c (do_clearmode): only mark the modes the
508 channel actually has in effect for deletion
510 * ircd/channel.c: added explanatory comments to all added
511 functions; made flushing take place at the correct place even if
512 the MODEBUF_DEST_DEOP flag is set; rewrote build_string() helper
513 to bash some stupid bugs; made modebuf_flush() return if ModeBuf
514 is empty, fixed the apparent source, removed some bogus string
515 termination code, properly terminate the mode strings, add support
516 for HACK2 and HACK3, made limit strings not be sent if the limit
517 is being removed, changed where '+' and '-' come from in sent
518 strings, added support for DEOP flag, set up bouncing code for
521 * ircd/Makefile.in: ran make depend
523 * include/channel.h: added new defines for future functionality,
524 made modebuf_flush() return int so I can use tail recursion
526 * ircd/m_clearmode.c: add msg.h to includes; other misc cleanups
527 to make it all compile
529 * ircd/m_opmode.c: add msg.h to includes...
531 * ircd/m_clearmode.c: implemented mo_clearchan()/ms_clearchan()
533 * ircd/channel.c (modebuf_flush): realized I forgot to
534 nul-terminate addbuf/rembuf properly...
536 * ircd/m_clearmode.c (do_clearmode): wrote do_clearmode()...
538 * ircd/channel.c (modebuf_flush): correct sendto_server_butone to
539 sendto_serv_butone--blah^2
541 * ircd/send.c (sendto_serv_butone): stupid comments confused me
543 * ircd/channel.c (modebuf_flush): if there are no mode changes to
544 propagate, we're done...
546 * ircd/channel.c (modebuf_flush): duh; it's sendto_server_butone,
547 not sendto_all_butone
549 * ircd/m_clearmode.c: define skeleton for m{o,s}_clearmode
551 * ircd/m_opmode.c: define skeleton for m{o,s}_opmode
553 * ircd/Makefile.in (SRC): added m_opmode() and m_clearmode() to
556 * ircd/parse.c: added messages for opmode and clearmode
558 * include/handlers.h: added declarations for mo_opmode(),
559 ms_opmode(), mo_clearmode(), and ms_clearmode()
561 * include/msg.h: define MSG_OPMODE, TOK_OPMODE, MSG_CLEARMODE, and
564 * include/channel.h (MODEBUF_DEST_OPMODE): Define the
565 MODEBUF_DEST_OPMODE flag
567 * ircd/channel.c (modebuf_flush): added new flag,
568 MODEBUF_DEST_OPMODE; causes channel MODE/HACK(4) notice to appear
569 to originate from source's server (or source itself, if
570 IsServer(source)); also causes a server-level MODE to be sent as
573 * include/channel.h: defined MODEBUF_DEST_SERVER,
576 * ircd/channel.c: Add another argument to build_string() to handle
577 numeric nicks; implemented MODEBUF_DEST_SERVER to send MODEs to
578 servers; implemented MODEBUF_DEST_HACK4 to cause HACK(4) notices
581 2000-03-27 Perry Lorier <isomer@coders.net>
583 * ircd/s_bsd.c: fixed missing 'u' typo.
585 2000-03-26 Kevin L. Mitchell <klmitch@emc.com>
587 * ircd/channel.c: implement modebuf_init(), _mode(), _mode_uint(),
588 _mode_string(), _mode_client(), _flush(); also implemented a
589 simple build_string()
591 * include/channel.h: added definition of ModeBuf, modebuf_*
592 manipulation functions, and a couple of helper macros
594 2000-03-24 Thomas Helvey <tomh@inxpress.net>
595 * numicks.c: convert extended numerics to use original mask version
598 2000-03-23 Thomas Helvey <tomh@inxpress.net>
599 * Merge in changes from production
600 2000-03-22 Thomas Helvey <tomh@inxpress.net>
601 * numicks.c: Tweak to numnick generator to reduce possibility of duplicates.
602 * rfc1459.unet: Add Maniac's documentation for /names 0
603 * Fix misc. jupe bugs that somehow made it into the tree
604 * Escape /names 0 to mean /names --Maniac
605 * Don't core when server asks for info --Maniac
606 * Add Kev's jupe patch --Bleep
607 * Add Maniacs squit patch --Bleep
608 * Merge in u2_10_10_beta07 changes --Bleep
609 * Merge in u2_10_10_beta06 changes --Bleep
610 * Start ircu2.10.11 development, beta branch u2_10_10 --Bleep
611 #-----------------------------------------------------------------------------
613 # ChangeLog for ircu2.10.11
615 # $Id: ChangeLog,v 1.94 2000-04-17 19:01:35 kev Exp $
617 # Insert new changes at beginning of the change list.