1 2000-04-16 Kevin L. Mitchell <klmitch@mit.edu>
3 * ircd/gline.c: make gline expire times relative to CurrentTime,
4 since that should be monotonically increasing, instead of
5 TStime(), which can be set backwards, and which can therefore
6 cause an expire time to increase; make local glines be removed
7 instead of just deactivated; don't let gline_find() look for
8 user@host glines if the mask being looked up is a channel mask
10 * ircd/send.c (vsendcmdto_one): forgot to account for the case
11 where origin is a server and destination is a user
13 * ircd/jupe.c: make jupe expire times relative to CurrentTime,
14 since that should be monotonically increasing, instead of
15 TStime(), which can be set backwards, and which can therefore
16 cause an expire time to increase; make local jupes be removed
17 instead of just deactivated
19 * ircd/ircd_snprintf.c: d'oh, thanks for catching that; short for
20 limit is fine. any other warnings I should know about?
22 2000-04-15 Thomas Helvey <tomh@inxpress.net>
24 * ircd/*.c: const correctness and type safety cleanups to
25 get code to compile with C++ compiler. Still has
26 signed/unsigned comparison warnings.
28 2000-04-15 Greg Sikorski <gte@atomicrevs.demon.co.uk>
30 * ircd/userload.c: change <sys/time.h> include to <time.h> for
33 2000-04-14 Kevin L. Mitchell <klmitch@mit.edu>
35 * ircd/m_gline.c (mo_gline): d'oh, target isn't a numeric; use %C
38 * ircd/s_user.c: move gline_lookup function call into
39 register_user, where it'll have a username to lookup!
41 * ircd/m_gline.c: modify to utilize new sendcmdto_* series of
42 functions; also stuff send_error_to_client into return clauses
44 * ircd/m_jupe.c: modify to utilize new sendcmdto_* series of
45 functions; also use send_error_to_client where that makes sense
47 * ircd/jupe.c: modify to utilize new sendcmdto_* series of
48 functions; also use send_error_to_client where that makes sense
50 * ircd/gline.c: modify to utilize new sendcmdto_* series of
51 functions; also fix gline_lookup() to deal properly with remote
52 clients--boy, do struct Client and struct User need to be cleaned
55 * ircd/ircd_snprintf.c (doprintf): a dest of &me is a server,
58 * ircd/send.c: wrote sendcmdto_one(), vsendcmdto_one(), and
59 sendcmdto_serv_butone(), all utilizing the %v conversion of
62 * include/send.h: define IRC_BUFSIZE, max size of a message;
63 declare sendcmdto_one(), vsendcmdto_one(), and
64 sendcmdto_serv_butone()
66 * include/msg.h: define all the CMD_* constants needed to utilize
67 the new sendcmdto_* series of functions
69 * ircd/Makefile.in (SRC): list ircd_snprintf.c; run make depend
71 * ircd/gline.c: remove old, dead code.
73 * ircd/m_gline.c (mo_gline): disallow setting of global G-lines
74 unless CONFIG_OPERCMDS is enabled; disallow listing of all G-lines
75 (don't advertise proxies); remove dead code
77 * ircd/parse.c: oper handler for JUPE only lists jupes unless
78 CONFIG_OPERCMDS is enabled
80 * ircd/m_jupe.c (mo_jupe): don't compile mo_jupe() if
81 CONFIG_OPERCMDS is not enabled; we'll disable it in parse.c
83 * ircd/m_opmode.c (mo_opmode): if CONFIG_OPERCMDS is not enabled,
84 always return ERR_DISABLED
86 * ircd/m_clearmode.c (mo_clearmode): if CONFIG_OPERCMDS is not
87 enabled, always return ERR_DISABLED
89 * ircd/s_err.c: add error message to indicate disabled commands
91 * include/numeric.h (ERR_DISABLED): to indicate disabled commands
93 * doc/Configure.help: add documentation for CONFIG_OPERCMDS
95 * config/config-sh.in: add CONFIG_OPERCMDS, default both it and
96 CONFIG_NEW_MODE to 'y' for now
98 * ircd/gline.c (gline_list): fix a minor formatting bogon
100 * BUGS: since I fixed that bug, might as well mark it fixed.
102 * ircd/m_join.c: look up badchans with GLINE_EXACT
104 * ircd/m_gline.c: fix parc count problems; look up existing
105 G-lines with GLINE_EXACT; only set new lastmod when
106 activating/deactivating existing glines if old lastmod was not 0
108 * ircd/gline.c: forgot to copy the gline reason over; don't
109 propagate a gline with 0 lastmod if origin is user; add
110 GLINE_EXACT to force exact matching of gline mask
112 * ircd/ircd_snprintf.c (doprintf): forgot to deal with the zero
115 * ircd/s_conf.c (find_kill): gline_find() takes a char *userhost,
116 but gline_lookup() actually takes a client--d'oh.
118 2000-04-13 Thomas Helvey <tomh@inxpress.net>
119 * ircd/IPcheck.c: Back port BLMet's bugfix from 2.10.10
121 2000-04-13 Greg Sikorski <gte@atomicrevs.demon.co.uk>
123 * ircd/whocmds.c: Don't make idle flag default in /who, to prevent:
125 "Gte3 H*iwg Gte@212.49.240.217 :1 :0 I am the one that was."
128 * ircd/whocmds.c: Change idle time calc from socket idle to user
131 2000-04-13 Kevin L. Mitchell <klmitch@mit.edu>
133 * config/aclocal.m4 (unet_CHECK_TYPE_SIZES): check size of void *,
134 too, for ircd_snprintf.c
136 * include/ircd_snprintf.h: documentation for ircd_(v)snprintf, in
137 comments; mostly descended from the Linux manpage for printf, but
138 also documenting the extensions.
140 * ircd/ircd_snprintf.c: NULL dest is equivalent to going to a
141 client; make 'q' be the same as 'L'; remove __inline__; only
142 define EXTENSION if HAVE_LONG_LONG is defined
144 * include/handlers.h: declare m_gline()
146 * ircd/parse.c: gline can be called by users, but it only lists
149 * ircd/s_user.c (set_nick_name): resend gline if a remote server
150 introduces a glined client
152 * ircd/s_serv.c (server_estab): burst glines, too
154 * ircd/gline.c: fix up all the expire times to be offsets;
155 simplify gline_resend()
157 * ircd/m_gline.c: begin coding replacements for ms_gline(),
158 mo_gline(), and m_gline()
160 * ircd/gline.c (gline_add): allow *@#channel to work correctly;
161 also, prohibit local BADCHANs if LOCAL_BADCHAN not defined
163 2000-04-13 Greg Sikorski <gte@atomicrevs.demon.co.uk>
165 * tools/Bouncer/*: Add comments/documentation/tags.
166 * tools/Bouncer/*: Add debug defines, make task fork().
168 2000-04-12 Thomas Helvey <tomh@inxpress.net>
169 * ircd/s_err.c: Cleanup s_err.c make one table so we
170 don't have to do anything tricky to get an error string.
172 2000-04-12 Greg Sikorski <gte@atomicrevs.demon.co.uk>
173 * Add port bouncer for http (x/w)
175 2000-04-12 Kevin L. Mitchell <klmitch@mit.edu>
177 * ircd/s_conf.c (find_kill): replaced call to find_gline() with a
178 call to gline_find(); also used GlineReason() instead of direct
179 reference to structure member
181 * ircd/m_join.c (m_join): replace bad_channel() calls with calls
182 to gline_find(name, GLINE_BADCHAN), and also check to see if gline
185 * ircd/channel.c: nothing seems to be called anywhere...
187 * ircd/s_err.c: update a couple of replies to dovetail with new
190 * ircd/gline.c: begin complete re-implementation of gline.c along
191 the lines of the final design of jupe.c
193 * include/gline.h: begin complete re-implementation of gline.c
194 along the lines of the final design of jupe.c
196 * ircd/channel.c (mode_process_clients): fix "Deop of +k user on
199 * ircd/ircd_snprintf.c: my new snprintf()-like functions
201 * include/ircd_snprintf.h: my new snprintf()-like functions
203 2000-04-11 Thomas Helvey <tomh@inxpress.net>
204 * ircd/IPcheck.c: removed old dead code
205 * ircd/s_user.c (send_user_info): removed non-standard
206 user not found message for userhost/userip
208 2000-04-11 Greg Sikorski <gte@atomicrevs.demon.co.uk>
210 * ircd/s_err.c: Added missing quotes to ERR_DONTCHEAT numeric.
211 * doc/p10.html: Work on chapter 4.
213 2000-04-10 Kevin L. Mitchell <klmitch@mit.edu>
215 * ircd/channel.c (mode_parse_client): fix coredump on /mode
216 #foobar +o nosuchnick
218 2000-04-10 Perry Lorier <Isomer@coders.net>
221 2000-04-09 Thomas Helvey <tomh@inxpress.net>
222 * include/IPcheck.h: fix prototype
223 * ircd/s_user.c: fix usage of IPcheck_remote_connect
224 * ircd/IPcheck.c: removed unused args
226 2000-04-09 Thomas Helvey <tomh@inxpress.net>
227 * include/IPcheck.h: add proto for IPcheck_expire
229 * ircd/IPcheck.c: Rewrote
231 * ircd/ircd.c: Add IPcheck_expire to main message loop
233 * ircd/s_user.c: Redo target hashing, refactor target code
235 * include/numeric.h: Cleaned up numerics, added which ones are
236 in use by other networks and what they are in use for.
238 * ircd/channel.c: cleaned can_join(), allow anyone through anything
239 if /invited, simplified the function. Opers overusing OPEROVERRIDE
240 will get a message explaining to them not to cheat.
242 * ircd/m_join.c: cleaned up the various join functions, should be
243 a lot more efficient. Still needs work. Now assumes that s<->s
244 won't send it a JOIN 0. Service coders - note this and tread with
247 * ircd/m_stats.c: added Gte-'s stats doc patch.
249 * ircd/m_version.c: /version now returns the 005 numeric as well.
250 as requested by Liandrin.
253 2000-04-07 Kevin L. Mitchell <klmitch@mit.edu>
255 * ircd/m_clearmode.c: add include for support.h for write_log()
257 * configure: move ircd/crypt/* to tools/*
259 2000-04-06 Thomas Helvey <tomh@inxpress.net>
260 * ircd/s_auth.c: Shorten auth connect timeout to 60 seconds
261 set client host to server alias if connection from localhost
263 2000-04-06 Perry Lorier <isomer@coders.net>
264 * ircd/ircd.c: Fix core during pinging (oops)
266 2000-04-06 Perry Lorier <isomer@coders.net>
267 * ircd/send.c: fixed wrong ident being sent to channels bug.
268 * include/numerics.h: Updated some of the numerics from other
269 networks. Flagged some as 'unused' by undernet.
271 2000-03-30 Perry Lorier <isomer@coders.net>
272 * ircd/ircd.c: Lets see if this helps the ping problem at all.
273 * ircd/whocmds.c, /doc/readme.who: Added %l specifier to get idle
274 time for local clients. (as requested), extended who now returns all
275 the flags (@+!) so you can tell the complete state of a client.
277 2000-03-30 Thomas Helvey <tomh@inxpress.net>
278 * m_rping.c m_rpong.c: add Gte's rping/rpong fixes
280 2000-03-30 Perry Lorier <isomer@coders.net>
281 * ircd/parse.c: oops, missed opers.
283 2000-03-30 Perry Lorier <isomer@coders.net>
284 * ircd/parse.c: fixed mystifying ping bug thats been plaguing us
285 for so long. Remember: m_ping MUST be in the parse array. :)
287 2000-03-30 Perry Lorier <isomer@coders.net>
288 * ircd/ircd.c: test in check_pings was wrong. I move that we
289 disallow cvs commit after 10pm localtime....
291 2000-03-30 Perry Lorier <isomer@coders.net>
292 * ircd/m_pong.c: Fix it for servers too.
294 2000-03-30 Perry Lorier <isomer@coders.net>
295 * ircd/m_pong.c: Fix ping timeout bugs
297 2000-03-30 Perry Lorier <isomer@coders.net>
298 * ircd/channel.c: Bans had CurrentTime in their when field instead
301 2000-03-31 Thomas Helvey <tomh@ixpress.net>
302 * ircd/numnicks.c (SetXYYCapacity): fix for extended
305 2000-03-30 Perry Lorier <isomer@coders.net>
306 * ircd/m_nick.c: send kills both ways so when we add nick change
307 on collision we don't desync the network.
309 * ircd/map.c: Fixup the map a bit more.
311 2000-03-31 Kevin L. Mitchell <klmitch@mit.edu>
313 * ircd/m_clearmode.c (do_clearmode): Log the CLEARMODE to OPATH
315 * ircd/m_opmode.c: Log the mode changes to OPATH
317 * ircd/channel.c (modebuf_flush_int): Log the mode changes to
320 * include/channel.h (MODEBUF_DEST_LOG): Log the mode changes to
323 * doc/Configure.help: help text for CONFIG_LOG_OPMODE / OPATH
325 * config/config-sh.in: added OPATH for opmode log file
327 * ircd/m_clearmode.c (do_clearmode): updated uses of
328 modebuf_mode_string() for the new usage
330 * ircd/channel.c: added flag MODE_FREE and an int argument to
331 modebuf_mode_string() to indicate that the string must be free'd;
332 updated calls to modebuf_mode_string() for the new usage; called
333 collapse(pretty_mask()) on the ban string and use allocated memory
334 for it; added ban list length accounting; fixed a number of small
335 bugs in ban processing
337 * include/channel.h: added flag MODE_FREE and an int argument to
338 modebuf_mode_string() to indicate that the string must be free'd
340 * ircd/m_clearmode.c (do_clearmode): made sure clearmode removed
341 keys and limits that are set
343 2000-03-30 Perry Lorier <isomer@coders.net>
344 * ircd/ircd.c: rewrote check_pings() for maintainability
345 and speed. Also changed quit msg's so they don't have
346 redundant nick[host] info in them.
348 * ircd/send.c: Changed write errors to report what error
349 occured (if possible).
351 * ircd/gline.c: added gline comment to the quit.
353 * ircd/m_server.c: Added suggestions to server quits mentioning
354 what went wrong so the admin can fix it earlier instead of asking
357 * ircd/map.c: Changed m_map() to hide numerics, show a * beside
358 servers that aren't fully burst yet. And show '(--s)' for servers
361 * doc/example.conf: Fixed wrapped U:
363 2000-03-30 Kevin L. Mitchell <klmitch@mit.edu>
365 * ircd/m_mode.c (ms_mode): implemented a new m_mode in terms of
366 mode_parse() (version selectable at compile time)
368 * ircd/m_clearmode.c (mo_clearmode): clean_channelname(parv[1])
370 * ircd/m_opmode.c (mo_opmode): clean_channelname(parv[1])
372 * config/config-sh.in: add new config option to enable new m_mode
375 * doc/Configure.help: add documentation for new config option
378 * ircd/channel.c (mode_parse_client): /opmode #foobar -o -- 461
379 MODE -v : Not enough parameters
381 * ircd/m_clearmode.c (do_clearmode): do_clearmode() would remove
382 +k and +l even if they weren't set...
384 * ircd/m_opmode.c: implement the OPMODE command using mode_parse()
386 * ircd/channel.c: make mode_process_clients() clear the DEOPPED
387 flag; fix +s+p exclusivity; add MODE_ADD/MODE_DEL to flag list
388 for; test the 0-th member, not the i-th member, of the client
391 * ircd/m_clearmode.c (do_clearmode): use the new
392 mode_invite_clear() function
394 * ircd/channel.c: cleared up all the compile-time warnings and
397 * include/channel.h: added declarations for mode_ban_invalidate()
398 and mode_invite_clear()
400 * ircd/channel.c: finished mode_parse(), then broke it up into a
401 dozen or so helper functions to make the code easier to read
403 2000-03-29 Thomas Helvey <tomh@inxpress.net>
404 * ircd/ircd.c: refactor server initialization a bit, use
405 getopt for parsing command line, refactor init_sys, main,
408 * ircd/s_bsd.c: add functions for initialization to clean
409 up logic a bit and remove duplicated code.
411 * include/ircd.h: add struct for server process related
414 2000-03-29 Kevin L. Mitchell <klmitch@mit.edu>
416 * ircd/channel.c: initial definition of mode_parse(); flags to
417 prevent doing the same thing multiple times; helper method
418 send_notoper() to send a "Not oper"/"Not on channel" notice
420 * include/channel.h: declare mode_parse() and helper flags
422 * ircd/channel.c (modebuf_flush_int): fiddled with timestamp
423 sending to match the current action of set_mode() closely enough
424 that hopefully there won't be major conflicts
426 * ircd/channel.c (modebuf_flush_int): consolidated the mode string
427 building logic, reversed the order of the arguments to mode
428 commands to have '-' preceed '+'
430 2000-03-29 Thomas Helvey <tomh@inxpress.net>
431 * ircd/s_bsd.c (add_connection): don't disable socket options
432 let OS tune itself and allow important performance tweaks to
435 2000-03-28 Kevin L. Mitchell <klmitch@mit.edu>
437 * ircd/channel.c (modebuf_flush_int): use %d, not %-15d; I got
438 confused by set_mode, which is doing some really weird logic;
439 guess what I'm going to rewrite next? ;)
441 2000-03-28 Kevin L. Mitchell <klmitch@emc.com>
443 * include/channel.h: added MODE_SAVE for the bounds checking stuff
446 * ircd/channel.c: make modebuf_flush into modebuf_flush_int and
447 make it do bounds checking on the buffer; all modes are sent only
448 if the all parameter is 1; modebuf_flush is the exported wrapper
450 * include/channel.h: add BOUNCE, renumber flags to get a little
453 * ircd/channel.c (modebuf_flush): don't overload HACK2, add
454 BOUNCE; send DESYNCH message
456 2000-03-27 Kevin L. Mitchell <klmitch@emc.com>
458 * ircd/m_clearmode.c (do_clearmode): only mark the modes the
459 channel actually has in effect for deletion
461 * ircd/channel.c: added explanatory comments to all added
462 functions; made flushing take place at the correct place even if
463 the MODEBUF_DEST_DEOP flag is set; rewrote build_string() helper
464 to bash some stupid bugs; made modebuf_flush() return if ModeBuf
465 is empty, fixed the apparent source, removed some bogus string
466 termination code, properly terminate the mode strings, add support
467 for HACK2 and HACK3, made limit strings not be sent if the limit
468 is being removed, changed where '+' and '-' come from in sent
469 strings, added support for DEOP flag, set up bouncing code for
472 * ircd/Makefile.in: ran make depend
474 * include/channel.h: added new defines for future functionality,
475 made modebuf_flush() return int so I can use tail recursion
477 * ircd/m_clearmode.c: add msg.h to includes; other misc cleanups
478 to make it all compile
480 * ircd/m_opmode.c: add msg.h to includes...
482 * ircd/m_clearmode.c: implemented mo_clearchan()/ms_clearchan()
484 * ircd/channel.c (modebuf_flush): realized I forgot to
485 nul-terminate addbuf/rembuf properly...
487 * ircd/m_clearmode.c (do_clearmode): wrote do_clearmode()...
489 * ircd/channel.c (modebuf_flush): correct sendto_server_butone to
490 sendto_serv_butone--blah^2
492 * ircd/send.c (sendto_serv_butone): stupid comments confused me
494 * ircd/channel.c (modebuf_flush): if there are no mode changes to
495 propagate, we're done...
497 * ircd/channel.c (modebuf_flush): duh; it's sendto_server_butone,
498 not sendto_all_butone
500 * ircd/m_clearmode.c: define skeleton for m{o,s}_clearmode
502 * ircd/m_opmode.c: define skeleton for m{o,s}_opmode
504 * ircd/Makefile.in (SRC): added m_opmode() and m_clearmode() to
507 * ircd/parse.c: added messages for opmode and clearmode
509 * include/handlers.h: added declarations for mo_opmode(),
510 ms_opmode(), mo_clearmode(), and ms_clearmode()
512 * include/msg.h: define MSG_OPMODE, TOK_OPMODE, MSG_CLEARMODE, and
515 * include/channel.h (MODEBUF_DEST_OPMODE): Define the
516 MODEBUF_DEST_OPMODE flag
518 * ircd/channel.c (modebuf_flush): added new flag,
519 MODEBUF_DEST_OPMODE; causes channel MODE/HACK(4) notice to appear
520 to originate from source's server (or source itself, if
521 IsServer(source)); also causes a server-level MODE to be sent as
524 * include/channel.h: defined MODEBUF_DEST_SERVER,
527 * ircd/channel.c: Add another argument to build_string() to handle
528 numeric nicks; implemented MODEBUF_DEST_SERVER to send MODEs to
529 servers; implemented MODEBUF_DEST_HACK4 to cause HACK(4) notices
532 2000-03-27 Perry Lorier <isomer@coders.net>
534 * ircd/s_bsd.c: fixed missing 'u' typo.
536 2000-03-26 Kevin L. Mitchell <klmitch@emc.com>
538 * ircd/channel.c: implement modebuf_init(), _mode(), _mode_uint(),
539 _mode_string(), _mode_client(), _flush(); also implemented a
540 simple build_string()
542 * include/channel.h: added definition of ModeBuf, modebuf_*
543 manipulation functions, and a couple of helper macros
545 2000-03-24 Thomas Helvey <tomh@inxpress.net>
546 * numicks.c: convert extended numerics to use original mask version
549 2000-03-23 Thomas Helvey <tomh@inxpress.net>
550 * Merge in changes from production
551 2000-03-22 Thomas Helvey <tomh@inxpress.net>
552 * numicks.c: Tweak to numnick generator to reduce possibility of duplicates.
553 * rfc1459.unet: Add Maniac's documentation for /names 0
554 * Fix misc. jupe bugs that somehow made it into the tree
555 * Escape /names 0 to mean /names --Maniac
556 * Don't core when server asks for info --Maniac
557 * Add Kev's jupe patch --Bleep
558 * Add Maniacs squit patch --Bleep
559 * Merge in u2_10_10_beta07 changes --Bleep
560 * Merge in u2_10_10_beta06 changes --Bleep
561 * Start ircu2.10.11 development, beta branch u2_10_10 --Bleep
562 #-----------------------------------------------------------------------------
564 # ChangeLog for ircu2.10.11
566 # $Id: ChangeLog,v 1.90 2000-04-16 04:30:42 kev Exp $
568 # Insert new changes at beginning of the change list.