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