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