Author: Bleep <helveytw@home.com>
[ircu2.10.12-pk.git] / ChangeLog
1 2000-09-17  Thomas Helvey <helveytw@home.com>
2         * ircd/*.c: merged in changes from 2.10.10.pl12, cleanup
3         merge conflicts.
4         * ircd/*.h: merged in changes from 2.10.10.pl12, cleanup
5         merge conflicts
6
7 2000-09-16  Thomas Helvey <helveytw@home.com>
8         * ircd/s_conf.c: add code for server struct
9         * ircd/client.c: copy of class.c sort of, new file for client
10         specific operations, will move things here as appropriate,
11         currently only one function is exported from here.
12         * ircd/*.c: general logic cleanups, convert negatives to
13         positives in places.
14
15 2000-09-16  Thomas Helvey <helveytw@home.com>
16         * ircd/s_conf.c: add code for new crule data structs, strip quotes
17         * ircd/crule.c: clean up scary casting a bit, type safety stuff
18         * include/s_conf.h: add CRuleConf struct and support, remove
19         unused constants
20         * include/crule.h: type safety cleanups
21         * ircd/*.c: fixup code that depended on stuff I changed
22
23 2000-09-15  Thomas Helvey <helveytw@home.com>
24         * ircd/s_conf.c: start adding code for new conf data structs, changed
25         listeners, admin line, motd lines, class lines. Move validate_hostent
26         to resolver. General mayhem.
27         * include/s_conf.h: new data structs and accessors
28         * ircd/res.c: move validate_hostent here, rewrite, use regular
29         expression for validation.
30         * doc/example.conf: update docs for port
31
32 2000-09-14  Thomas Helvey <helveytw@home.com>
33         * ircd/s_conf.c (conf_init): rewrite conf file parser, start to break
34         up conf_init into managable chunks.
35         * ircd/listener.c (set_listener_mask): fix logic bug core dump.
36         * include/s_conf.h: add new data struct for local info (unwinding the mess).
37
38 2000-09-13  Thomas Helvey <helveytw@home.com>
39         * ircd/list.c: put Clients in free lists, pre-allocate MAXCONNECTIONS
40         local clients.
41         * ircd/list.c: put SLinks in free lists
42         * ircd/channel.c: put Memberships in free lists
43         * ircd/ircd.c: rearrange initializations a bit in main
44         Note: With these changes, ircd NEVER frees Clients, SLinks or
45         Memberships. It will also rarely need to allocate new
46         ones during net bursts and other disruptions. This should
47         cut down on memory fragmentation a bit as well.
48
49 2000-08-30  Kevin L. Mitchell  <klmitch@mit.edu>
50
51         * ircd/m_names.c (do_names): pull-up from do_names fix in
52         u2.10.10.pl11
53
54 2000-07-15  Perry Lorier       <Isomer@coders.net>
55         * various: IP only k:'s and G:'s now do bit tests instead of two(!) 
56                  match()'s.  Major Major cpu savings.  Also speed up the
57                  other case slightly.  As a side effect you can now
58                  k/Gline *@10.0.0.0/8.  I'll do bans tomorrow, it's nearing
59                  3am.
60
61 2000-07-15  Perry Lorier       <Isomer@coders.net>
62         * various: Fixed warnings after compiling on an alpha.
63 2000-07-09  Perry Lorier       <Isomer@coders.net>
64         * doc/ircd.8: Applied grammitical changes by Liandrin, applied
65                       changes suggested by various other people.
66         * ircd/IPcheck.c: More bug fixes.  Current problem appears to be
67                         that it gets a corrupt entry somehow.
68 2000-07-09  Greg Sikorski <gte@atomicrevs.demon.co.uk>
69         * ircd/m_oper.c: Clean up compiler warning.
70
71 2000-07-08  Perry Lorier       <Isomer@coders.net>
72         * doc/ircd.8: Updated the documentation, it was slightly out of date
73                       being updated around 1989.
74         * ircd/m_whois.c: Rewrote for clarity, and probably a bit more speed.
75                           fixed a few minor glitches.
76         * doc/rfc1459.unet: Updated.
77         * ircd/IPcheck.c: Fixed more bugs.
78         * ircd/s_bsd.c: We now keep track of servers we've conected.
79
80 2000-07-02  Perry Lorier       <Isomer@coders.net>
81         * ircd/s_misc.c: Fixed remote IPcheck bug.  Ok, I'm a moron, so sue
82                         me.  Thanks to Hektik, thanks thanks thanks thanks
83                         thanks thanks thanks thanks thank thanks thank thanks
84
85 2000-07-01  Perry Lorier       <Isomer@coders.net>
86         * ircd/s_conf.c: "Fixed" the "bug" where people would "evade" K:'s.
87         * ircd/s_conf.c, include/IPcheck.h: Fixed compile warnings.
88
89 2000-06-22  Perry Lorier       <Isomer@coders.net>
90         * ircd/IPcheck.c: Large chunks redone.
91         * ircd/s_conf.c: Changes due to IPcheck - ONE nolonger supported,
92                         single AND double digit limits are allowed now.
93         * misc other: Changes to IPcheck.
94
95 2000-06-30  Perry Lorier       <Isomer@coders.net>
96         * ircd/ircd.c: Fix command line parameter bugs.
97
98 2000-06-30  Perry Lorier       <Isomer@coders.net>
99         * ircd/m_kill.c: Fixed bug with LOCAL_KILL_ONLY
100         * ircd/m_nick.c: Tidied things up.
101
102 2000-06-12 Joseph Bongaarts <foxxe@trms.com>
103         * ircd/m_stats.c: Iso forgot mo_stats when he added /stats v
104         
105 2000-05-29  Perry Lorier       <Isomer@coders.net>
106         * ircd/m_stats.c: add /stats v to do only the last part of the /trace
107         * ircd/IPcheck.c: Cosmetic change, if we meddle with it enough do
108                         you think it'll get bored and fix itself?
109
110 2000-06-09  Greg Sikorski <gte@atomicrevs.demon.co.uk>
111
112         * ircd/m_names.c: Clean up compiler warnings.
113
114 2000-06-09  Kevin L. Mitchell  <klmitch@mit.edu>
115
116         * ircd/channel.c (mode_parse_client): don't send warning if
117         there's not enough arguments for a +/-o/v; means the habit of
118         doing "/mode #channel +oooooo bob" doesn't result in a bunch of
119         error messages
120
121 2000-06-04  Greg Sikorski <gte@atomicrevs.demon.co.uk>
122
123         * ircd/m_names.c: Re-factor code to remove unneccessary
124         GlobalChannelList iteration every time someone joins a channel.
125
126 2000-06-02  Kevin L. Mitchell  <klmitch@mit.edu>
127
128         * ircd/s_user.c: add struct Gline * argument to register_user;
129         look up global glines and repropagate them if necessary; send
130         acknowledgement of gline to remote servers when registering users
131
132         * ircd/s_serv.c (server_estab): don't send acknowledgement of
133         local glines to remote servers; do send gline acknowledgement of
134         bursted users
135
136         * ircd/m_user.c (m_user): pass new struct Gline * argument to
137         register_user
138
139         * ircd/m_pong.c: pass new struct Gline * argument to register_user
140
141         * ircd/m_nick.c (ms_nick): document protocol change
142
143         * ircd/gline.c: support GLINE_LASTMOD
144
145         * include/s_user.h: add struct Gline * argument to register_user
146
147         * include/gline.h: add GLINE_LASTMOD to look up non-zero lastmods
148
149         * ircd/s_conf.c (find_kill): add unsigned int argument to
150         gline_lookup()
151
152         * ircd/gline.c: add GLINE_GLOBAL to lookup or find only global
153         glines; add unsigned int argument to gline_lookup()
154
155         * include/gline.h: add GLINE_GLOBAL flag; add unsigned int
156         argument to gline_lookup()
157
158         * ircd/m_server.c: Resend jupe only when there is no %<lastmod>
159         parameter, or when it falls out of bounds: see comments prior to
160         call to jupe_resend(); call server_estab with struct Jupe
161         parameter, so that we place the appropriate %<lastmod> in the
162         appropriate place.
163
164         * ircd/s_serv.c (server_estab): send %<lastmod> for introduced
165         server, as well as for servers when we're sending the BURST
166
167         * include/s_serv.h: add a struct Jupe * to the arguments for
168         server_estab() so that we can send the appropriate lastmod
169         parameter
170
171         * ircd/m_gline.c (ms_gline): actually, this should be the
172         slightest bit more efficient...
173
174         * ircd/m_jupe.c (ms_jupe): actually, this should be the slightest
175         bit more efficient...
176
177         * ircd/m_gline.c (ms_gline): inhibit GLINE processing resends
178         during netburst
179
180         * ircd/m_jupe.c (ms_jupe): inhibit JUPE processing resends during
181         netburst
182
183         * ircd/channel.c (joinbuf_join): really remove user from local
184         channels
185
186 2000-05-29  Perry Lorier       <Isomer@coders.net>
187         * ircd/m_names.c: Removed redundant space. 
188         * ircd/s_bsd.c: Fixed incorrect syntax on ERROR line.
189
190 2000-05-18  Kevin L. Mitchell  <klmitch@mit.edu>
191
192         * ircd/m_burst.c (ms_burst): er...that should have been a ",", not
193         a " "
194
195 2000-05-04  Kevin L. Mitchell  <klmitch@mit.edu>
196
197         * ircd/channel.c: replace bogus assertions with returns, which is
198         logically correct; only wipe out limit/key if they were originally
199         set in the first place; remove user from channel when doing a
200         PARTALL; only send MODE +o for user CREATEing channel if user is
201         not MyUser--CREATE will only be used if the channel did not
202         originally exist, therefore we can assume no one local is on the
203         channel anyway, and we don't exactly need for the user to see an
204         explicit +o for themselves
205
206         * doc/readme.gline: describe the syntax of the GLINE command
207
208         * doc/readme.jupe: update to reflect a couple of changes to JUPE
209
210         * ircd/gline.c: don't propagate local changes
211
212         * ircd/jupe.c: don't propagate local changes
213
214         * ircd/m_gline.c (mo_gline): force local flag when deactivating
215         glines with 0 lastmod
216
217         * ircd/gline.c (gline_deactivate): G-lines with zero lastmod time
218         are now removed instead of being deactivated
219
220         * ircd/m_gline.c (ms_gline): make G-lines of the form "GLINE *
221         -<mask>" be accepted
222
223         * ircd/channel.c (send_channel_modes): deal with one of the last
224         vestiges of sendbuf
225
226         * ircd/m_burst.c (ms_burst): debugged ban processing; removed
227         debugging hooks
228
229         * ircd/channel.c (modebuf_extract): remove debugging
230         sendto_opmask_butone calls
231
232 2000-05-03  Kevin L. Mitchell  <klmitch@mit.edu>
233
234         * ircd/channel.c: support a couple of new flags to support using
235         mode_parse; fix some bugs with 0 struct ModeBuf *; implementation
236         of modebuf_extract to extract added flags for use by ms_burst
237
238         * include/channel.h: a couple of new flags to support using
239         mode_parse inside ms_burst
240
241         * ircd/m_burst.c (ms_burst): brand new implementation of BURST
242
243         * ircd/m_endburst.c: add loop to processing of end_of_burst to
244         free empty channels after the BURST is over.
245
246         * ircd/m_server.c: convert to use new send.c functions--I wanted
247         to rewrite it from scratch, but the logic's pretty complex; I may
248         still rewrite it, though...
249
250 2000-05-02  Thomas Helvey <tomh@inxpress.net>
251
252         * ircd/ircd.c: fix broken header include ordering
253
254 2000-05-02  Thomas Helvey <tomh@inxpress.net>
255         
256         * ircd/IPcheck.c: cleanups for ZenShadow's cleanups
257         review emailed privately
258
259         * include/IPcheck.h: removed unneeded include
260
261 2000-05-02  Kevin L. Mitchell  <klmitch@mit.edu>
262
263         * ircd/s_user.c (hunt_server): throw in a comment so I know what
264         the sendto_one is for
265
266         * include/querycmds.h (Count_unknownbecomesclient): convert to
267         sendto_opmask_butone
268
269         * ircd/send.c: start removing dead code
270
271         * include/send.h: start removing dead code
272
273         * ircd/m_rping.c: convert to sendcmdto_one / send_reply /
274         hunt_server_cmd
275
276         * ircd/m_rpong.c: convert to sendcmdto_one / send_reply
277
278 2000-05-01  Kevin L. Mitchell  <klmitch@mit.edu>
279
280         * ircd/m_stats.c: convert to sendcmdto_one / send_reply
281
282         * ircd/m_kick.c: Completely reimplement m_kick
283
284         * ircd/channel.c: send_user_joins removed; it was dead code,
285         anyway...
286
287 2000-05-01  Perry Lorier <isomer@coders.net>
288         * ircd/m_invite.c: Fix for the rest of m_invite.c, and again.
289         * ircd/channels.c: My fix for the part problem.  Untested, probably
290                 won't work.  Can't be much worse than the current problem.
291                 it'll either work or core, take your pick.
292
293
294 2000-04-30  Perry Lorier <isomer@coders.net>
295         * config/config-sh.in: Fix for CONNEXIT
296         * ircd/s_{user,misc}.c: Fix for CONNEXIT
297         * ircd/m_invite.c: Fix for incorrectly numnickified invite.
298                         (Kev: Want to come talk to me about this?)
299
300 2000-04-30  Steven M. Doyle <steven@doyle.net>
301         * ircd/ircd.c
302           - general cleanups and readability enhancements
303           - rewrite of setuid/chroot code.
304           - server will no longer run as root
305           - -DPROFIL compile option removed
306           - Fixed IPcheck API calls
307  
308         * config/config-sh.in
309           - Fixed up chroot compile options
310           - Added options for debug and profile compiles
311  
312         * config/gen.ircd.Makefile
313           - Support for new debug/profile options
314  
315         * ircd/Makefile.in
316           - Support for new debug/profile options
317  
318         * ircd/ircd_signal.c
319           - Removed -DPROFIL
320
321         * include/IPcheck.h
322           - Removed old API prototypes, added new ones
323         
324         * ircd/IPcheck.c
325           - Readability cleanups (well, I -think-...)
326           - Changed IPRegistryEntry.last_connect to a time_t.  The previously
327             used unsigned short was probably causing interesting things after
328             a client had been connected longer than about 65,535 seconds...
329           - Removed old API functions.
330
331         * ircd/whocmds.c
332           - Removed IPcheck.h include
333         
334         * Additionally modified IPcheck API calls in:
335           - ircd/m_nick.c
336           - ircd/m_auth.c
337           - ircd/s_bsd.c
338           - ircd/s_conf.c
339           - ircd/s_misc.c
340           - ircd/s_serv.c
341           - ircd/s_user.c
342         
343         
344 2000-04-30  Perry Lorier <isomer@coders.net>
345         * ircd/s_bsd.c: Sigh. :)
346         * ircd/m_mode.c: fix for modeless channels by poptix.
347
348 2000-04-29  Kevin L. Mitchell  <klmitch@mit.edu>
349
350         * ircd/m_join.c: reimplement JOIN in terms of struct JoinBuf
351
352         * ircd/channel.c (clean_channelname): make clean_channelname also
353         truncate long channel names
354
355 2000-04-28  Kevin L. Mitchell  <klmitch@mit.edu>
356
357         * ircd/m_create.c: reimplement CREATE in terms of struct JoinBuf
358
359         * ircd/channel.c: implemented joinbuf_init, joinbuf_join,
360         joinbuf_flush
361
362         * include/channel.h: definitions and declarations for the struct
363         JoinBuf abstraction
364
365 2000-04-29  Perry Lorier <isomer@coders.net>
366         * ircd/s_bsd.c: Ok, so I thought I compiled and tested this...
367
368 2000-04-29  Perry Lorier <isomer@coders.net>
369         * ircd/s_bsd.c: Add debugging code to IPcheck
370
371 2000-04-28  Kevin L. Mitchell  <klmitch@mit.edu>
372
373         * include/ircd_reply.h (SND_EXPLICIT): use instead of RPL_EXPLICIT
374
375         * ircd/ircd_reply.c (send_reply): use SND_EXPLICIT instead of
376         RPL_EXPLICIT
377
378         * ircd/m_userhost.c (m_userhost): add a dead code comment
379
380         * ircd/m_desynch.c: forgot one...
381
382         * ircd/m_rehash.c (mo_rehash): er, duplicates :)
383
384         * ircd/m_proto.c (proto_send_supported): just change a comment so
385         it doesn't show up in my scans
386
387         * ircd/ircd_reply.c (send_reply): fix a slight bug...
388
389         * ircd/s_numeric.c (do_numeric): use new sendcmdto_* functions,
390         kinda hackish...
391
392         * ircd/parse.c (parse_server): argument wrangling to make
393         processing in do_numeric a little easier to deal with
394
395         * ircd/s_serv.c (server_estab): SERVER should come from
396         acptr->serv->up, not &me
397
398         * ircd/m_lusers.c: accidentally left out sptr for a %C
399
400         * ircd/send.c: hack to support doing wallchops...
401
402         * ircd/m_whowas.c: convert to new send functions
403
404         * ircd/m_whois.c: convert to new send functions
405
406         * ircd/m_who.c: convert to new send functions
407
408         * ircd/m_wallops.c: convert to new send functions
409
410         * ircd/m_wallchops.c: convert to new send functions
411
412         * ircd/m_version.c: convert to new send functions
413
414         * ircd/m_userip.c: convert to new send functions
415
416         * ircd/m_userhost.c: convert to new send functions
417
418         * ircd/m_uping.c: convert to new send functions
419
420         * ircd/m_trace.c: convert to new send functions
421
422         * ircd/m_topic.c: convert to new send functions
423
424         * ircd/m_time.c: convert to new send functions
425
426         * ircd/m_squit.c: convert to new send functions
427
428         * ircd/m_silence.c: convert to new send functions
429
430         * ircd/m_settime.c: convert to new send functions
431
432         * ircd/m_restart.c: convert to new send functions
433
434         * ircd/m_rehash.c: convert to new send functions
435
436         * ircd/m_privmsg.c: convert to new send functions
437
438         * ircd/m_pong.c: convert to new send functions
439
440         * ircd/m_ping.c: convert to new send functions
441
442         * ircd/m_pass.c: convert to new send functions
443
444         * ircd/m_opmode.c: convert to new send functions
445
446         * ircd/m_oper.c: convert to new send functions
447
448         * ircd/m_notice.c: convert to new send functions
449
450         * ircd/m_nick.c: convert to new send functions
451
452         * ircd/m_names.c: convert to new send functions
453
454         * ircd/m_motd.c: convert to new send functions
455
456         * ircd/m_mode.c: convert to new send functions
457
458         * ircd/m_map.c: convert to new send functions
459
460         * ircd/m_lusers.c: convert to new send functions
461
462         * ircd/m_list.c: convert to new send functions
463
464         * ircd/m_links.c: convert to new send functions
465
466         * ircd/m_kill.c: convert to new send functions
467
468         * ircd/m_jupe.c: convert to new send functions
469
470         * ircd/m_invite.c: convert to new send functions
471
472         * ircd/m_info.c: convert to new send functions
473
474         * ircd/m_help.c: convert to new send functions
475
476         * ircd/m_gline.c: convert to new send functions
477
478         * ircd/m_error.c: convert to new send functions
479
480         * ircd/m_endburst.c: convert to new send functions
481
482         * ircd/m_die.c: convert to new send functions
483
484         * ircd/m_destruct.c: convert to new send functions
485
486         * ircd/m_defaults.c: convert to new send functions
487
488         * ircd/m_connect.c: convert to new send functions
489
490 2000-04-28  Perry Lorier <isomer@coders.net>
491         * RELEASE.NOTES: Describe a few more undocumented features.
492         * config/config-sh.in: change the default paths for logging
493         and the recommended number of channels.
494         * include/supported.h: Rearrange slightly, added CHANTYPE's
495
496 2000-04-27  Kevin L. Mitchell  <klmitch@mit.edu>
497
498         * ircd/m_close.c: convert to send_reply
499
500         * ircd/m_clearmode.c: convert to send_reply, sendcmdto_serv_butone
501
502         * ircd/m_away.c: convert to send_reply and sendcmdto_serv_butone
503
504         * ircd/m_admin.c: convert to send_reply and hunt_server_cmd
505
506         * ircd/s_user.c (hunt_server_cmd): new hunt_server replacement
507         that takes cmd and tok arguments, etc.  NOTE: THIS IMPLEMENTATION
508         HAS A MAJOR HACK!!!  The whole hunt_server architecture should be
509         carefully rethought...
510
511         * ircd/s_stats.c (hunt_stats): use new hunt_server_cmd
512
513         * include/s_user.h: hunt_server_cmd -- replacement for hunt_server
514
515         * ircd/s_misc.c: *sigh* 2.10.10 doesn't support squitting by
516         numeric nick; therefore, we have to use the server name
517
518         * ircd/m_squit.c (ms_squit): allow to squit by server numeric nick
519
520         * ircd/send.c: fix minor bugs
521
522         * ircd/s_user.c (check_target_limit): mark dead code so I filter
523         it when I grep
524
525         * ircd/s_serv.c (exit_new_server): mark dead code so I filter it
526         when I grep
527
528         * ircd/parse.c: mark dead code so I filter it when I grep
529
530         * ircd/map.c: mark dead code so I filter it when I grep
531
532         * ircd/ircd.c: mark dead code so I filter it when I grep
533
534         * ircd/ircd_relay.c: convert over to new sendcmdto_*, send_reply
535         functions
536
537         * ircd/channel.c: mark dead code so I filter it when I grep
538
539         * ircd/s_stats.c: use send_reply instead of sendto_one w/rpl_str;
540         hope I'm not stepping on toes...
541
542         * ircd/s_conf.c: more sendto_opmask_butone / send_reply
543         conversions; use ircd_snprintf in a couple of cases to negate the
544         possibility of buffer overflow
545
546 2000-04-26  Kevin L. Mitchell  <klmitch@mit.edu>
547
548         * ircd/channel.c: convert as much as possible to new send
549         semantics
550
551         * ircd/send.c (sendcmdto_common_channels): fix a subtle bug --
552         test member->user->from->fd, not from->fd
553
554         * ircd/gline.c (gline_add): go ahead and add badchans; we just
555         won't look for them in m_gline; this way, they always work...
556
557         * ircd/jupe.c: use ircd_vsnprintf conversion specifiers
558
559         * ircd/gline.c: since write_log now uses ircd_vsnprintf, use
560         ircd_vsnprintf conversion specifiers
561
562         * ircd/support.c (write_log): use ircd_vsnprintf for write_log, so
563         I have my conversion specifiers
564
565         * ircd/gline.c (do_gline): use send_reply for ERR_YOUREBANNEDCREEP
566
567         * ircd/send.c (sendcmdto_flag_butone): explicitly send WALLOPS to
568         local users
569
570         * ircd/s_serv.c (exit_new_server): rewrite exit_new_server to be a
571         little less brain-dead
572
573         * ircd/s_misc.c: use sendcmdto_one, sendrawto_one, and send_reply
574
575         * ircd/s_debug.c: use send_reply with RPL_EXPLICIT for
576         RPL_STATSDEBUG
577
578         * ircd/res.c (cres_mem): use send_reply with RPL_EXPLICIT for
579         RPL_STATSDEBUG
580
581         * ircd/list.c (send_listinfo): use send_reply with RPL_EXPLICIT
582         for RPL_STATSDEBUG
583
584         * ircd/m_pong.c: use RPL_EXPLICIT for ERR_BADPING
585
586         * ircd/ircd.c: use RPL_EXPLICIT for ERR_BADPING
587
588         * ircd/s_user.c (register_user): use RPL_EXPLICIT for
589         ERR_INVALIDUSERNAME
590
591         * ircd/ircd_reply.c (send_reply): support RPL_EXPLICIT
592
593         * include/ircd_reply.h (RPL_EXPLICIT): somewhat of a hack to mark
594         a numeric as needing to use an explicit pattern, which will be the
595         first argument in the variable argument list
596
597         * ircd/s_user.c: use sendrawto_one instead of sendto_one to send
598         non-prefixed nospoof PING
599
600         * ircd/s_bsd.c: use sendrawto_one instead of sendto_one to send
601         non-prefixed SERVER login
602
603         * ircd/ircd.c (check_pings): fix last sendto_one calls (except for
604         a numeric usage further up)
605
606         * include/send.h: declare sendrawto_one
607
608         * ircd/send.c (sendrawto_one): new function to use ONLY for
609         non-prefixed commands, like PING to client, or PASS/SERVER on
610         server registration
611
612 2000-04-25  Kevin L. Mitchell  <klmitch@mit.edu>
613
614         * ircd/ircd_snprintf.c (doprintf): implement %H for possible
615         future expansion (channel numerics?)
616
617         * include/ircd_snprintf.h: added documentation to # to explain use
618         with %C; added documentation for : to explain use with %C; added
619         documentation for %H for channels
620
621         * ircd/whocmds.c: use send_reply
622
623         * ircd/userload.c: use sendcmdto_one
624
625         * ircd/uping.c: use sendcmdto_one
626
627         * ircd/send.c: use new flags to %C format string; ':' prefixes
628         client name with a colon for local connects, '#' uses
629         nick!user@host form for local connects
630
631         * ircd/s_user.c: use send_reply, sendto_opmask_butone,
632         sendcmdto_one, sendcmdto_serv_butone, sendcmdto_flag_butone
633
634         * ircd/s_serv.c: use sendcmdto_one, sendto_opmask_butone
635
636         * ircd/s_bsd.c: use sendto_opmask_butone, send_reply,
637         sendcmdto_one
638
639         * ircd/s_auth.c: use sendto_opmask_butone
640
641         * ircd/res.c: use sendcmdto_one
642
643         * ircd/ircd_snprintf.c (doprintf): minor bug fixes and some
644         debugging assertions
645
646 2000-04-24  Kevin L. Mitchell  <klmitch@mit.edu>
647
648         * ircd/support.c: dumpcore is no longer used, so get rid of it
649
650         * ircd/parse.c: use send_reply, sendcmdto_one
651
652         * ircd/map.c: use send_reply
653
654         * ircd/listener.c: use send_reply
655
656         * ircd/jupe.c: use sendto_opmask_butone, send_reply
657
658         * ircd/ircd_reply.c: use send_reply
659
660         * ircd/ircd.c: use sendto_opmask_butone
661
662         * ircd/gline.c: use sendto_opmask_butone, send_reply
663
664         * ircd/ircd_snprintf.c (doprintf): make it deal with incompletely
665         registered clients; make FLAG_ALT print nick!user@host; make
666         FLAG_COLON print :blah
667
668         * ircd/class.c (report_classes): use send_reply instead of
669         sendto_one
670
671         * ircd/hash.c (m_hash): replace sendto_one with sendcmdto_one
672
673         * ircd/IPcheck.c (ip_registry_connect_succeeded): replace
674         sendto_one with sendcmdto_one
675
676 2000-04-21  Kevin L. Mitchell  <klmitch@mit.edu>
677
678         * ircd/send.c: clean up logic in sendcmdto_channel_butone; use
679         MyConnect() instead of IsServer() in sendcmdto_flag_butone; define
680         sendcmdto_match_butone
681
682         * include/send.h: declare sendcmdto_match_butone
683
684 2000-04-20  Kevin L. Mitchell  <klmitch@mit.edu>
685
686         * ircd/jupe.c: update to use send_reply()
687
688         * ircd/gline.c: update to use send_reply()
689
690         * include/ircd_reply.h: declare send_reply
691
692         * ircd/ircd_reply.c (send_reply): send_error_to_client, but for
693         replies; uses ircd_snprintf
694
695         * ircd/send.c: added comments to redirect searchers to appropriate
696         sendcmdto_* function; moved new functions to end of file; added
697         explanatory comments; reordered arguments; defined new functions
698         mentioned below
699
700         * ircd/m_jupe.c: reorder arguments to sendcmdto_* functions
701
702         * ircd/m_gline.c: reorder arguments to sendcmdto_* functions
703
704         * ircd/jupe.c: reorder arguments to sendcmdto_* functions
705
706         * ircd/gline.c: reorder arguments to sendcmdto_* functions
707
708         * include/send.h: reorder arguments, add explanatory comments,
709         declare new functions sendcmdto_flag_butone, sendto_opmask_butone,
710         and vsendto_opmask_butone
711
712 2000-04-19  Kevin L. Mitchell  <klmitch@mit.edu>
713
714         * ircd/send.c: define sendcmdto_channel_butone, wrote a simplified
715         vsendto_op_mask that uses '*' instead of the receiving client
716         nickname
717
718         * include/send.h: declare sendcmdto_channel_butone; takes a skip
719         argument that allows you to skip (or not to skip) deaf users,
720         users behind bursting servers, and non channel operators
721
722 2000-04-17  Kevin L. Mitchell  <klmitch@mit.edu>
723
724         * ircd/send.c: new sendcmdto_channel_butserv -- note that old
725         sendto_channel_butserv has a subtle bug; also wrote
726         sendcmdto_common_channels.
727
728         * include/send.h: declare new sendcmdto_* functions
729
730         * ircd/jupe.c: support local deactivations of jupes
731
732         * ircd/gline.c: support local deactivations of glines
733
734         * include/jupe.h: JUPE_LDEACT allows jupes to be locally
735         deactivated; if they aren't locally deactivated, then it slaves to
736         the net-wide activation status; JupeIsRemActive() tests only
737         whether the jupe is active everywhere else
738
739         * include/gline.h: GLINE_LDEACT allows glines to be locally
740         deactivated; if they aren't locally deactivated, then it slaves to
741         the net-wide activation status; GlineIsRemActive() tests only
742         whether the gline is active everywhere else
743
744         * ircd/gline.c: detect overlapping G-lines; if an existing, wider
745         gline expires after the new one will, we drop the new one,
746         otherwise we add the G-line after that one (so the wide one will
747         apply first); if the new one contains an existing G-line and if it
748         will expire after the existing one, we drop the existing one to
749         save memory
750
751         * ircd/m_gline.c (mo_gline): opers could issue remote local
752         glines when CONFIG_OPERCMDS was off; fixed
753
754 2000-04-16  Kevin L. Mitchell  <klmitch@mit.edu>
755
756         * ircd/m_jupe.c (mo_jupe): allow target argument to be dropped if
757         this is a local JUPE
758
759         * ircd/gline.c: add flags argument to gline_activate and
760         gline_deactivate for future expansion
761
762         * ircd/m_gline.c: pass flags to gline_activate and
763         gline_deactivate
764
765         * include/gline.h: add flags argument to gline_activate and
766         gline_deactivate
767
768         * ircd/jupe.c: add flags argument to jupe_activate and
769         jupe_deactivate for future expansion
770
771         * include/jupe.h: add flags argument to jupe_activate and
772         jupe_deactivate
773
774         * ircd/m_jupe.c: pass a flags argument to jupe_add instead of
775         local, active; pass flags to jupe_activate and jupe_deactivate
776
777         * include/gline.h: remove dead code
778
779         * ircd/gline.c: make gline expire times relative to CurrentTime,
780         since that should be monotonically increasing, instead of
781         TStime(), which can be set backwards, and which can therefore
782         cause an expire time to increase; make local glines be removed
783         instead of just deactivated; don't let gline_find() look for
784         user@host glines if the mask being looked up is a channel mask
785
786         * ircd/send.c (vsendcmdto_one): forgot to account for the case
787         where origin is a server and destination is a user
788
789         * ircd/jupe.c: make jupe expire times relative to CurrentTime,
790         since that should be monotonically increasing, instead of
791         TStime(), which can be set backwards, and which can therefore
792         cause an expire time to increase; make local jupes be removed
793         instead of just deactivated
794
795         * ircd/ircd_snprintf.c: d'oh, thanks for catching that; short for
796         limit is fine.  any other warnings I should know about?
797
798 2000-04-15  Thomas Helvey <tomh@inxpress.net>
799
800         * ircd/*.c: const correctness and type safety cleanups to
801         get code to compile with C++ compiler. Still has
802         signed/unsigned comparison warnings.
803
804 2000-04-15  Greg Sikorski <gte@atomicrevs.demon.co.uk>
805
806         * ircd/userload.c: change <sys/time.h> include to <time.h> for
807           portability.
808
809 2000-04-14  Kevin L. Mitchell  <klmitch@mit.edu>
810
811         * ircd/m_gline.c (mo_gline): d'oh, target isn't a numeric; use %C
812         and convert acptr...
813
814         * ircd/s_user.c: move gline_lookup function call into
815         register_user, where it'll have a username to lookup!
816
817         * ircd/m_gline.c: modify to utilize new sendcmdto_* series of
818         functions; also stuff send_error_to_client into return clauses
819
820         * ircd/m_jupe.c: modify to utilize new sendcmdto_* series of
821         functions; also use send_error_to_client where that makes sense
822
823         * ircd/jupe.c: modify to utilize new sendcmdto_* series of
824         functions; also use send_error_to_client where that makes sense
825
826         * ircd/gline.c: modify to utilize new sendcmdto_* series of
827         functions; also fix gline_lookup() to deal properly with remote
828         clients--boy, do struct Client and struct User need to be cleaned
829         up!
830
831         * ircd/ircd_snprintf.c (doprintf): a dest of &me is a server,
832         too...
833
834         * ircd/send.c: wrote sendcmdto_one(), vsendcmdto_one(), and
835         sendcmdto_serv_butone(), all utilizing the %v conversion of
836         ircd_snprintf()
837
838         * include/send.h: define IRC_BUFSIZE, max size of a message;
839         declare sendcmdto_one(), vsendcmdto_one(), and
840         sendcmdto_serv_butone()
841
842         * include/msg.h: define all the CMD_* constants needed to utilize
843         the new sendcmdto_* series of functions
844
845         * ircd/Makefile.in (SRC): list ircd_snprintf.c; run make depend
846
847         * ircd/gline.c: remove old, dead code.
848
849         * ircd/m_gline.c (mo_gline): disallow setting of global G-lines
850         unless CONFIG_OPERCMDS is enabled; disallow listing of all G-lines
851         (don't advertise proxies); remove dead code
852
853         * ircd/parse.c: oper handler for JUPE only lists jupes unless
854         CONFIG_OPERCMDS is enabled
855
856         * ircd/m_jupe.c (mo_jupe): don't compile mo_jupe() if
857         CONFIG_OPERCMDS is not enabled; we'll disable it in parse.c
858
859         * ircd/m_opmode.c (mo_opmode): if CONFIG_OPERCMDS is not enabled,
860         always return ERR_DISABLED
861
862         * ircd/m_clearmode.c (mo_clearmode): if CONFIG_OPERCMDS is not
863         enabled, always return ERR_DISABLED
864
865         * ircd/s_err.c: add error message to indicate disabled commands
866
867         * include/numeric.h (ERR_DISABLED): to indicate disabled commands
868
869         * doc/Configure.help: add documentation for CONFIG_OPERCMDS
870
871         * config/config-sh.in: add CONFIG_OPERCMDS, default both it and
872         CONFIG_NEW_MODE to 'y' for now
873
874         * ircd/gline.c (gline_list): fix a minor formatting bogon
875
876         * BUGS: since I fixed that bug, might as well mark it fixed.
877
878         * ircd/m_join.c: look up badchans with GLINE_EXACT
879
880         * ircd/m_gline.c: fix parc count problems; look up existing
881         G-lines with GLINE_EXACT; only set new lastmod when
882         activating/deactivating existing glines if old lastmod was not 0
883
884         * ircd/gline.c: forgot to copy the gline reason over; don't
885         propagate a gline with 0 lastmod if origin is user; add
886         GLINE_EXACT to force exact matching of gline mask
887
888         * ircd/ircd_snprintf.c (doprintf): forgot to deal with the zero
889         flag properly
890
891         * ircd/s_conf.c (find_kill): gline_find() takes a char *userhost,
892         but gline_lookup() actually takes a client--d'oh.
893
894 2000-04-13  Thomas Helvey <tomh@inxpress.net>
895         * ircd/IPcheck.c: Back port BLMet's bugfix from 2.10.10
896
897 2000-04-13  Greg Sikorski <gte@atomicrevs.demon.co.uk>
898
899         * ircd/whocmds.c: Don't make idle flag default in /who, to prevent:
900           "/who * x"
901           "Gte3 H*iwg Gte@212.49.240.217 :1 :0 I am the one that was."
902           (Found by Plexus).
903
904         * ircd/whocmds.c: Change idle time calc from socket idle to user
905           idle.
906
907 2000-04-13  Kevin L. Mitchell  <klmitch@mit.edu>
908
909         * config/aclocal.m4 (unet_CHECK_TYPE_SIZES): check size of void *,
910         too, for ircd_snprintf.c
911
912         * include/ircd_snprintf.h: documentation for ircd_(v)snprintf, in
913         comments; mostly descended from the Linux manpage for printf, but
914         also documenting the extensions.
915
916         * ircd/ircd_snprintf.c: NULL dest is equivalent to going to a
917         client; make 'q' be the same as 'L'; remove __inline__; only
918         define EXTENSION if HAVE_LONG_LONG is defined
919
920         * include/handlers.h: declare m_gline()
921
922         * ircd/parse.c: gline can be called by users, but it only lists
923         the glines.
924
925         * ircd/s_user.c (set_nick_name): resend gline if a remote server
926         introduces a glined client
927
928         * ircd/s_serv.c (server_estab): burst glines, too
929
930         * ircd/gline.c: fix up all the expire times to be offsets;
931         simplify gline_resend()
932
933         * ircd/m_gline.c: begin coding replacements for ms_gline(),
934         mo_gline(), and m_gline()
935
936         * ircd/gline.c (gline_add): allow *@#channel to work correctly;
937         also, prohibit local BADCHANs if LOCAL_BADCHAN not defined
938
939 2000-04-13  Greg Sikorski <gte@atomicrevs.demon.co.uk>
940
941         * tools/Bouncer/*: Add comments/documentation/tags.
942         * tools/Bouncer/*: Add debug defines, make task fork().
943
944 2000-04-12  Thomas Helvey <tomh@inxpress.net>
945         * ircd/s_err.c: Cleanup s_err.c make one table so we
946         don't have to do anything tricky to get an error string.
947
948 2000-04-12  Greg Sikorski <gte@atomicrevs.demon.co.uk>
949         * Add port bouncer for http (x/w)
950
951 2000-04-12  Kevin L. Mitchell  <klmitch@mit.edu>
952
953         * ircd/s_conf.c (find_kill): replaced call to find_gline() with a
954         call to gline_find(); also used GlineReason() instead of direct
955         reference to structure member
956
957         * ircd/m_join.c (m_join): replace bad_channel() calls with calls
958         to gline_find(name, GLINE_BADCHAN), and also check to see if gline
959         is active
960
961         * ircd/channel.c: nothing seems to be called anywhere...
962
963         * ircd/s_err.c: update a couple of replies to dovetail with new
964         semantics
965
966         * ircd/gline.c: begin complete re-implementation of gline.c along
967         the lines of the final design of jupe.c
968
969         * include/gline.h: begin complete re-implementation of gline.c
970         along the lines of the final design of jupe.c
971
972         * ircd/channel.c (mode_process_clients): fix "Deop of +k user on
973         %s by %s" message...
974
975         * ircd/ircd_snprintf.c: my new snprintf()-like functions
976
977         * include/ircd_snprintf.h: my new snprintf()-like functions
978
979 2000-04-11  Thomas Helvey <tomh@inxpress.net>
980         * ircd/IPcheck.c: removed old dead code
981         * ircd/s_user.c (send_user_info): removed non-standard
982           user not found message for userhost/userip
983
984 2000-04-11  Greg Sikorski <gte@atomicrevs.demon.co.uk>
985
986         * ircd/s_err.c: Added missing quotes to ERR_DONTCHEAT numeric.
987         * doc/p10.html: Work on chapter 4.
988
989 2000-04-10  Kevin L. Mitchell  <klmitch@mit.edu>
990
991         * ircd/channel.c (mode_parse_client): fix coredump on /mode
992         #foobar +o nosuchnick
993
994 2000-04-10  Perry Lorier  <Isomer@coders.net>
995         * BUGS: Added bug.
996
997 2000-04-09  Thomas Helvey <tomh@inxpress.net>
998         * include/IPcheck.h: fix prototype
999         * ircd/s_user.c: fix usage of IPcheck_remote_connect
1000         * ircd/IPcheck.c: removed unused args
1001
1002 2000-04-09  Thomas Helvey <tomh@inxpress.net>
1003         * include/IPcheck.h: add proto for IPcheck_expire
1004
1005         * ircd/IPcheck.c: Rewrote
1006
1007         * ircd/ircd.c: Add IPcheck_expire to main message loop
1008
1009         * ircd/s_user.c: Redo target hashing, refactor target code
1010
1011         * include/numeric.h: Cleaned up numerics, added which ones are
1012         in use by other networks and what they are in use for.
1013
1014         * ircd/channel.c: cleaned can_join(), allow anyone through anything
1015         if /invited, simplified the function.  Opers overusing OPEROVERRIDE
1016         will get a message explaining to them not to cheat.
1017
1018         * ircd/m_join.c: cleaned up the various join functions, should be
1019         a lot more efficient.  Still needs work.  Now assumes that s<->s
1020         won't send it a JOIN 0.  Service coders - note this and tread with
1021         care.
1022
1023         * ircd/m_stats.c: added Gte-'s stats doc patch.
1024
1025         * ircd/m_version.c: /version now returns the 005 numeric as well.
1026         as requested by Liandrin.
1027
1028
1029 2000-04-07  Kevin L. Mitchell  <klmitch@mit.edu>
1030
1031         * ircd/m_clearmode.c: add include for support.h for write_log()
1032
1033         * configure: move ircd/crypt/* to tools/*
1034
1035 2000-04-06  Thomas Helvey <tomh@inxpress.net>
1036         * ircd/s_auth.c: Shorten auth connect timeout to 60 seconds
1037           set client host to server alias if connection from localhost
1038
1039 2000-04-06  Perry Lorier <isomer@coders.net>
1040         * ircd/ircd.c: Fix core during pinging (oops)
1041         
1042 2000-04-06  Perry Lorier <isomer@coders.net>
1043         * ircd/send.c: fixed wrong ident being sent to channels bug.
1044         * include/numerics.h: Updated some of the numerics from other
1045         networks.  Flagged some as 'unused' by undernet.
1046
1047 2000-03-30  Perry Lorier <isomer@coders.net>
1048         * ircd/ircd.c: Lets see if this helps the ping problem at all.
1049         * ircd/whocmds.c, /doc/readme.who: Added %l specifier to get idle
1050         time for local clients. (as requested), extended who now returns all
1051         the flags (@+!) so you can tell the complete state of a client.
1052
1053 2000-03-30  Thomas Helvey <tomh@inxpress.net>
1054         * m_rping.c m_rpong.c: add Gte's rping/rpong fixes
1055
1056 2000-03-30  Perry Lorier <isomer@coders.net>
1057         * ircd/parse.c: oops, missed opers.
1058
1059 2000-03-30  Perry Lorier <isomer@coders.net>
1060         * ircd/parse.c: fixed mystifying ping bug thats been plaguing us
1061         for so long.  Remember: m_ping MUST be in the parse array. :)
1062
1063 2000-03-30  Perry Lorier <isomer@coders.net>
1064         * ircd/ircd.c: test in check_pings was wrong.  I move that we
1065         disallow cvs commit after 10pm localtime....
1066
1067 2000-03-30  Perry Lorier <isomer@coders.net>
1068         * ircd/m_pong.c: Fix it for servers too.
1069
1070 2000-03-30  Perry Lorier <isomer@coders.net>
1071         * ircd/m_pong.c: Fix ping timeout bugs
1072
1073 2000-03-30  Perry Lorier <isomer@coders.net>
1074         * ircd/channel.c: Bans had CurrentTime in their when field instead
1075         of TStime()
1076
1077 2000-03-31  Thomas Helvey <tomh@ixpress.net>
1078         * ircd/numnicks.c (SetXYYCapacity): fix for extended
1079         numerics.
1080
1081 2000-03-30  Perry Lorier <isomer@coders.net>
1082         * ircd/m_nick.c: send kills both ways so when we add nick change
1083         on collision we don't desync the network.
1084
1085         * ircd/map.c: Fixup the map a bit more.
1086
1087 2000-03-31  Kevin L. Mitchell  <klmitch@mit.edu>
1088
1089         * ircd/m_clearmode.c (do_clearmode): Log the CLEARMODE to OPATH
1090
1091         * ircd/m_opmode.c: Log the mode changes to OPATH
1092
1093         * ircd/channel.c (modebuf_flush_int): Log the mode changes to
1094         OPATH
1095
1096         * include/channel.h (MODEBUF_DEST_LOG): Log the mode changes to
1097         OPATH
1098
1099         * doc/Configure.help: help text for CONFIG_LOG_OPMODE / OPATH
1100
1101         * config/config-sh.in: added OPATH for opmode log file
1102
1103         * ircd/m_clearmode.c (do_clearmode): updated uses of
1104         modebuf_mode_string() for the new usage
1105
1106         * ircd/channel.c: added flag MODE_FREE and an int argument to
1107         modebuf_mode_string() to indicate that the string must be free'd;
1108         updated calls to modebuf_mode_string() for the new usage; called
1109         collapse(pretty_mask()) on the ban string and use allocated memory
1110         for it; added ban list length accounting; fixed a number of small
1111         bugs in ban processing
1112
1113         * include/channel.h: added flag MODE_FREE and an int argument to
1114         modebuf_mode_string() to indicate that the string must be free'd
1115
1116         * ircd/m_clearmode.c (do_clearmode): made sure clearmode removed
1117         keys and limits that are set
1118
1119 2000-03-30  Perry Lorier <isomer@coders.net>
1120         * ircd/ircd.c: rewrote check_pings() for maintainability
1121         and speed.  Also changed quit msg's so they don't have
1122         redundant nick[host] info in them.
1123
1124         * ircd/send.c: Changed write errors to report what error
1125         occured (if possible).
1126
1127         * ircd/gline.c: added gline comment to the quit.
1128
1129         * ircd/m_server.c: Added suggestions to server quits mentioning
1130         what went wrong so the admin can fix it earlier instead of asking
1131         questions...
1132
1133         * ircd/map.c: Changed m_map() to hide numerics, show a * beside
1134         servers that aren't fully burst yet.  And show '(--s)' for servers
1135         where its not sure.
1136
1137         * doc/example.conf: Fixed wrapped U:
1138
1139 2000-03-30  Kevin L. Mitchell  <klmitch@mit.edu>
1140
1141         * ircd/m_mode.c (ms_mode): implemented a new m_mode in terms of
1142         mode_parse() (version selectable at compile time)
1143
1144         * ircd/m_clearmode.c (mo_clearmode): clean_channelname(parv[1])
1145
1146         * ircd/m_opmode.c (mo_opmode): clean_channelname(parv[1])
1147
1148         * config/config-sh.in: add new config option to enable new m_mode
1149         implementation
1150
1151         * doc/Configure.help: add documentation for new config option
1152         CONFIG_NEW_MODE
1153
1154         * ircd/channel.c (mode_parse_client): /opmode #foobar -o -- 461
1155         MODE -v : Not enough parameters
1156
1157         * ircd/m_clearmode.c (do_clearmode): do_clearmode() would remove
1158         +k and +l even if they weren't set...
1159
1160         * ircd/m_opmode.c: implement the OPMODE command using mode_parse()
1161
1162         * ircd/channel.c: make mode_process_clients() clear the DEOPPED
1163         flag; fix +s+p exclusivity; add MODE_ADD/MODE_DEL to flag list
1164         for; test the 0-th member, not the i-th member, of the client
1165         change state stuff
1166
1167         * ircd/m_clearmode.c (do_clearmode): use the new
1168         mode_invite_clear() function
1169
1170         * ircd/channel.c: cleared up all the compile-time warnings and
1171         errors
1172
1173         * include/channel.h: added declarations for mode_ban_invalidate()
1174         and mode_invite_clear()
1175
1176         * ircd/channel.c: finished mode_parse(), then broke it up into a
1177         dozen or so helper functions to make the code easier to read
1178
1179 2000-03-29  Thomas Helvey <tomh@inxpress.net>
1180         * ircd/ircd.c: refactor server initialization a bit, use
1181         getopt for parsing command line, refactor init_sys, main,
1182         and other bits.
1183
1184         * ircd/s_bsd.c: add functions for initialization to clean
1185         up logic a bit and remove duplicated code.
1186
1187         * include/ircd.h: add struct for server process related
1188         variables.
1189
1190 2000-03-29  Kevin L. Mitchell  <klmitch@mit.edu>
1191
1192         * ircd/channel.c: initial definition of mode_parse(); flags to
1193         prevent doing the same thing multiple times; helper method
1194         send_notoper() to send a "Not oper"/"Not on channel" notice
1195
1196         * include/channel.h: declare mode_parse() and helper flags
1197
1198         * ircd/channel.c (modebuf_flush_int): fiddled with timestamp
1199         sending to match the current action of set_mode() closely enough
1200         that hopefully there won't be major conflicts
1201
1202         * ircd/channel.c (modebuf_flush_int): consolidated the mode string
1203         building logic, reversed the order of the arguments to mode
1204         commands to have '-' preceed '+'
1205
1206 2000-03-29  Thomas Helvey <tomh@inxpress.net>
1207         * ircd/s_bsd.c (add_connection): don't disable socket options
1208         let OS tune itself and allow important performance tweaks to 
1209         work.
1210
1211 2000-03-28  Kevin L. Mitchell  <klmitch@mit.edu>
1212
1213         * ircd/channel.c (modebuf_flush_int): use %d, not %-15d; I got
1214         confused by set_mode, which is doing some really weird logic;
1215         guess what I'm going to rewrite next?  ;)
1216
1217 2000-03-28  Kevin L. Mitchell  <klmitch@emc.com>
1218
1219         * include/channel.h: added MODE_SAVE for the bounds checking stuff
1220         in modebuf_flush
1221
1222         * ircd/channel.c: make modebuf_flush into modebuf_flush_int and
1223         make it do bounds checking on the buffer; all modes are sent only
1224         if the all parameter is 1; modebuf_flush is the exported wrapper
1225
1226         * include/channel.h: add BOUNCE, renumber flags to get a little
1227         more space
1228
1229         * ircd/channel.c (modebuf_flush): don't overload HACK2, add
1230         BOUNCE; send DESYNCH message
1231
1232 2000-03-27  Kevin L. Mitchell  <klmitch@emc.com>
1233
1234         * ircd/m_clearmode.c (do_clearmode): only mark the modes the
1235         channel actually has in effect for deletion
1236
1237         * ircd/channel.c: added explanatory comments to all added
1238         functions; made flushing take place at the correct place even if
1239         the MODEBUF_DEST_DEOP flag is set; rewrote build_string() helper
1240         to bash some stupid bugs; made modebuf_flush() return if ModeBuf
1241         is empty, fixed the apparent source, removed some bogus string
1242         termination code, properly terminate the mode strings, add support
1243         for HACK2 and HACK3, made limit strings not be sent if the limit
1244         is being removed, changed where '+' and '-' come from in sent
1245         strings, added support for DEOP flag, set up bouncing code for
1246         HACK2
1247
1248         * ircd/Makefile.in: ran make depend
1249
1250         * include/channel.h: added new defines for future functionality,
1251         made modebuf_flush() return int so I can use tail recursion
1252
1253         * ircd/m_clearmode.c: add msg.h to includes; other misc cleanups
1254         to make it all compile
1255
1256         * ircd/m_opmode.c: add msg.h to includes...
1257
1258         * ircd/m_clearmode.c: implemented mo_clearchan()/ms_clearchan()
1259
1260         * ircd/channel.c (modebuf_flush): realized I forgot to
1261         nul-terminate addbuf/rembuf properly...
1262
1263         * ircd/m_clearmode.c (do_clearmode): wrote do_clearmode()...
1264
1265         * ircd/channel.c (modebuf_flush): correct sendto_server_butone to
1266         sendto_serv_butone--blah^2
1267
1268         * ircd/send.c (sendto_serv_butone): stupid comments confused me
1269
1270         * ircd/channel.c (modebuf_flush): if there are no mode changes to
1271         propagate, we're done...
1272
1273         * ircd/channel.c (modebuf_flush): duh; it's sendto_server_butone,
1274         not sendto_all_butone
1275
1276         * ircd/m_clearmode.c: define skeleton for m{o,s}_clearmode
1277
1278         * ircd/m_opmode.c: define skeleton for m{o,s}_opmode
1279
1280         * ircd/Makefile.in (SRC): added m_opmode() and m_clearmode() to
1281         the list
1282
1283         * ircd/parse.c: added messages for opmode and clearmode
1284
1285         * include/handlers.h: added declarations for mo_opmode(),
1286         ms_opmode(), mo_clearmode(), and ms_clearmode()
1287
1288         * include/msg.h: define MSG_OPMODE, TOK_OPMODE, MSG_CLEARMODE, and
1289         TOK_CLEARMODE
1290
1291         * include/channel.h (MODEBUF_DEST_OPMODE): Define the
1292         MODEBUF_DEST_OPMODE flag
1293
1294         * ircd/channel.c (modebuf_flush): added new flag,
1295         MODEBUF_DEST_OPMODE; causes channel MODE/HACK(4) notice to appear
1296         to originate from source's server (or source itself, if
1297         IsServer(source)); also causes a server-level MODE to be sent as
1298         OPMODE instead
1299
1300         * include/channel.h: defined MODEBUF_DEST_SERVER,
1301         MODEBUF_DEST_HACK4
1302
1303         * ircd/channel.c: Add another argument to build_string() to handle
1304         numeric nicks; implemented MODEBUF_DEST_SERVER to send MODEs to
1305         servers; implemented MODEBUF_DEST_HACK4 to cause HACK(4) notices
1306         to be sent out
1307
1308 2000-03-27  Perry Lorier <isomer@coders.net>
1309
1310         * ircd/s_bsd.c: fixed missing 'u' typo.
1311
1312 2000-03-26  Kevin L. Mitchell  <klmitch@emc.com>
1313
1314         * ircd/channel.c: implement modebuf_init(), _mode(), _mode_uint(),
1315         _mode_string(), _mode_client(), _flush(); also implemented a
1316         simple build_string()
1317
1318         * include/channel.h: added definition of ModeBuf, modebuf_*
1319         manipulation functions, and a couple of helper macros
1320
1321 2000-03-24 Thomas Helvey <tomh@inxpress.net>
1322   * numicks.c: convert extended numerics to use original mask version
1323   * numnicks.h: ""
1324   * s_user.c:
1325 2000-03-23 Thomas Helvey <tomh@inxpress.net>
1326   * Merge in changes from production
1327 2000-03-22 Thomas Helvey <tomh@inxpress.net>
1328   * numicks.c: Tweak to numnick generator to reduce possibility of duplicates.
1329   * rfc1459.unet: Add Maniac's documentation for /names 0
1330 * Fix misc. jupe bugs that somehow made it into the tree
1331 * Escape /names 0 to mean /names --Maniac
1332 * Don't core when server asks for info --Maniac 
1333 * Add Kev's jupe patch --Bleep
1334 * Add Maniacs squit patch --Bleep
1335 * Merge in u2_10_10_beta07 changes --Bleep
1336 * Merge in u2_10_10_beta06 changes --Bleep
1337 * Start ircu2.10.11 development, beta branch u2_10_10 --Bleep
1338 #-----------------------------------------------------------------------------