]> jfr.im git - irc/quakenet/newserv.git/log
irc/quakenet/newserv.git
17 years agoshow duration header for chanlevhistory
Paul [Sat, 9 Jun 2007 13:57:20 +0000 (13:57 +0000)] 
show duration header for chanlevhistory

17 years agoUpdate lastuse(join) information for a channel if a user is on a channel when they...
Paul [Sat, 9 Jun 2007 12:48:32 +0000 (12:48 +0000)] 
Update lastuse(join) information for a channel if a user is on a channel when they AC token is set

17 years agoshould be j not i
Paul [Sat, 9 Jun 2007 00:33:54 +0000 (00:33 +0000)] 
should be j not i

17 years agoMerge.
splidge [Fri, 8 Jun 2007 22:15:28 +0000 (23:15 +0100)] 
Merge.

17 years agoAdded "giveowner" command.
splidge [Fri, 8 Jun 2007 22:15:01 +0000 (23:15 +0100)] 
Added "giveowner" command.

17 years agoUpdated deregisterlocaluser.
splidge [Fri, 8 Jun 2007 22:14:17 +0000 (23:14 +0100)] 
Updated deregisterlocaluser.

Now has correct default reason.
Also made it trigger the HOOK_NICK_QUIT.

17 years agoAdded reason support for ns-gline.c and ns-kill.c
Ian Barker [Thu, 7 Jun 2007 10:47:49 +0000 (11:47 +0100)] 
Added reason support for ns-gline.c and ns-kill.c

17 years agoAdded list of commands from old Q
splidge [Wed, 6 Jun 2007 19:22:18 +0000 (20:22 +0100)] 
Added list of commands from old Q

17 years agofix stupid mistake when determining the size of the channel in gline/kill ...
Ian Barker [Tue, 5 Jun 2007 23:22:29 +0000 (00:22 +0100)] 
fix stupid mistake when determining the size of the channel in gline/kill ...

17 years agoMerged.
splidge [Tue, 5 Jun 2007 22:52:41 +0000 (23:52 +0100)] 
Merged.

17 years agoNewsearch overhauled.
splidge [Tue, 5 Jun 2007 22:16:02 +0000 (23:16 +0100)] 
Newsearch overhauled.

Removed the confusion of having both a return type specified in each node
and the return type being passed in on execute.

Now each node should always return the type indicated in its "returntype"
member.  Nodes who want its callees to return a certain type can call the
new "coerceNode()" to insert a conversion node as necessary to convert
types.  Note that coerceNode() has no overhead if the node already returns
the correct type.

The "type" parameter passed to search execute functions has been removed.

All existing modules have been rewritten to honour these rules, in a lot of
cases this means ripping out useless code to return different types (and as
a side-effect it has fixed all problems where a node was unable to correctly
return some types).  Sadly some nodes (eq, lt, gt) have got a bit messier as
they now need to coerce each subsequent parameter to match the type of the
first parameter.

Also fixed up some of the channel nodes to just return the relevant piece of
data rather than a BOOL acquired by performing some arbitrary operation on
that data.

Added the (length) function which returns the length of its input string.

Removed the (namelen) function as you can now call (length (name)) - or, to
reproduce the old function, (gt (length (name)) <constant>) which will
return all channel names above a constant length.

17 years agomodifed ns-gline.c and ns-kill.c to work in newsearch's chansearch aswell as nicksearch
Ian Barker [Tue, 5 Jun 2007 16:42:06 +0000 (17:42 +0100)] 
modifed ns-gline.c and ns-kill.c to work in newsearch's chansearch aswell as nicksearch

17 years agoMerged.
splidge [Mon, 4 Jun 2007 22:06:42 +0000 (23:06 +0100)] 
Merged.

17 years agoAdded (+ enabled) authedpct functionality in newsearch's chansearch
Ian Barker [Mon, 4 Jun 2007 21:48:15 +0000 (22:48 +0100)] 
Added (+ enabled) authedpct functionality in newsearch's chansearch

17 years agoAdded (+ enabled) uniquehostpct functionality in newsearch's chansearch
Ian Barker [Mon, 4 Jun 2007 21:38:45 +0000 (22:38 +0100)] 
Added (+ enabled) uniquehostpct functionality in newsearch's chansearch

17 years agoAdded (+ enabled) oppct functionality in newsearch's chansearch (also fixed a typo)
Ian Barker [Mon, 4 Jun 2007 21:24:13 +0000 (22:24 +0100)] 
Added (+ enabled) oppct functionality in newsearch's chansearch (also fixed a typo)

17 years agoAdded quoting and escaping support.
splidge [Mon, 4 Jun 2007 21:07:42 +0000 (22:07 +0100)] 
Added quoting and escaping support.

17 years agoAdded (+ enabled) topic functionality in newsearch's chansearch (also changed help...
Ian Barker [Mon, 4 Jun 2007 21:04:51 +0000 (22:04 +0100)] 
Added (+ enabled) topic functionality in newsearch's chansearch (also changed help note in ns-name.c)

17 years agoAdded (+ enabled) name functionality in newsearch's chansearch
Ian Barker [Mon, 4 Jun 2007 20:25:58 +0000 (21:25 +0100)] 
Added (+ enabled) name functionality in newsearch's chansearch

17 years agoAdded (+ enabled) namelen functionality in newsearch's chansearch
Ian Barker [Mon, 4 Jun 2007 20:11:12 +0000 (21:11 +0100)] 
Added (+ enabled) namelen functionality in newsearch's chansearch

17 years agoAdded (+ enabled) size functionality in newsearch's chansearch
Ian Barker [Mon, 4 Jun 2007 20:00:27 +0000 (21:00 +0100)] 
Added (+ enabled) size functionality in newsearch's chansearch

17 years agoAdded (+ enabled) services functionality in newsearch's chansearch (and fixed a typo!)
Ian Barker [Mon, 4 Jun 2007 19:47:46 +0000 (20:47 +0100)] 
Added (+ enabled) services functionality in newsearch's chansearch (and fixed a typo!)

17 years agoAdded (+ enabled) exists functionality in newsearch's chansearch
Ian Barker [Mon, 4 Jun 2007 18:59:17 +0000 (19:59 +0100)] 
Added (+ enabled) exists functionality in newsearch's chansearch

17 years agomodified ns-nick.c to now work in both nicksearch and chansearch
Ian Barker [Mon, 4 Jun 2007 18:31:19 +0000 (19:31 +0100)] 
modified ns-nick.c to now work in both nicksearch and chansearch

17 years agoMerge
splidge [Mon, 4 Jun 2007 10:23:35 +0000 (11:23 +0100)] 
Merge

17 years agoMake burst joins work properly for -j channels.
splidge [Mon, 4 Jun 2007 10:22:58 +0000 (11:22 +0100)] 
Make burst joins work properly for -j channels.

With the change to the bursting logic it's now OK to have chanflag -j
channels set +ik - legit users can start the channel, other users are
netrider kicked.

17 years agoTidied up the joining behaviour a bit.
splidge [Mon, 4 Jun 2007 10:09:57 +0000 (11:09 +0100)] 
Tidied up the joining behaviour a bit.

A few changes:

 * Burst with the default modes as well as the forcemodes (unless some of
   the default modes are denied, of course).

 * If there's only one user on the channel and they are known, don't burst
   with +i or +k - this avoids kicking the users off their own channels.
   Obviously if the user isn't known they shouldn't be joining so we leave
   the modes set to get rid of them

 * Ripped out the #ifdef 0'd code that used to try and deal with imposters -
   there is no need for this now that we can burst into channels.

17 years agoAdded CHANMODE_DEFAULT to indicate the default modes.
splidge [Mon, 4 Jun 2007 10:01:46 +0000 (11:01 +0100)] 
Added CHANMODE_DEFAULT to indicate the default modes.

17 years agoAdded initial support for LISP style chansearch in newsearch (replacing old chansearch.c)
Ian Barker [Sun, 3 Jun 2007 18:35:31 +0000 (19:35 +0100)] 
Added initial support for LISP style chansearch in newsearch (replacing old chansearch.c)

17 years agoMerged
splidge [Sun, 3 Jun 2007 18:04:27 +0000 (19:04 +0100)] 
Merged

17 years agobah
Paul [Sun, 3 Jun 2007 18:34:06 +0000 (18:34 +0000)] 
bah

17 years agoUpdated the authhistory table to include a reason field.
splidge [Sun, 3 Jun 2007 18:03:22 +0000 (19:03 +0100)] 
Updated the authhistory table to include a reason field.

17 years agoMoved some database code from chanservstdcmds.c into their relevant command
splidge [Sun, 3 Jun 2007 18:02:55 +0000 (19:02 +0100)] 
Moved some database code from chanservstdcmds.c into their relevant command
files.

Added authhistory command.

17 years agoCaused cs_checkaccess to trigger a privilege check even if privs is 0. This
splidge [Sun, 3 Jun 2007 18:01:44 +0000 (19:01 +0100)] 
Caused cs_checkaccess to trigger a privilege check even if privs is 0.  This
allows for a default bypass to be added (currently set to all opers)

17 years agoRemoved old database functions which went into authtracker.
splidge [Sun, 3 Jun 2007 18:00:51 +0000 (19:00 +0100)] 
Removed old database functions which went into authtracker.

17 years agoFixed nit in localburstontochannel()
splidge [Sun, 3 Jun 2007 18:00:20 +0000 (19:00 +0100)] 
Fixed nit in localburstontochannel()

(it was sending an extra space in burst messages)

17 years agoAdded new nsmalloc pool for authtracker
splidge [Sun, 3 Jun 2007 17:59:26 +0000 (18:59 +0100)] 
Added new nsmalloc pool for authtracker

17 years agoNew authtracker module.
splidge [Sun, 3 Jun 2007 17:58:51 +0000 (18:58 +0100)] 
New authtracker module.

This module is responsible for keeping the authhistory table up to date, but
has been written to be mostly independent of chanserv itself (the only
explicit reference is to chanservnext - and that can be removed once
userids-on-account are supported).

17 years agoAdded a couple of hook triggers. Also correctly set the init status
splidge [Sun, 3 Jun 2007 17:57:12 +0000 (18:57 +0100)] 
Added a couple of hook triggers.  Also correctly set the init status
variable when startup is complete.

17 years agoMade it so quit reasons are correctly passed on.
splidge [Sun, 3 Jun 2007 17:56:11 +0000 (18:56 +0100)] 
Made it so quit reasons are correctly passed on.

17 years agoCompiler warning fix.
splidge [Sun, 3 Jun 2007 17:55:54 +0000 (18:55 +0100)] 
Compiler warning fix.

17 years agoRemoved existing auth tracking code pending addition of new stuff.
splidge [Sun, 3 Jun 2007 17:55:27 +0000 (18:55 +0100)] 
Removed existing auth tracking code pending addition of new stuff.

17 years agoChanged the hook code so that if one user of a hook deletes their callback
splidge [Sun, 3 Jun 2007 17:54:03 +0000 (18:54 +0100)] 
Changed the hook code so that if one user of a hook deletes their callback
while the hook is running it doesn't prevent another user receiving the
hook.

This is done by setting a handler to NULL instead of deleting it when there
are hook callbacks active.  When a new hook is registered, any NULL slots
are replaced before expanding the array.

17 years agoMerged.
splidge [Sun, 3 Jun 2007 17:21:48 +0000 (18:21 +0100)] 
Merged.

17 years agorenamed failedinit -> cffailedinit
Paul [Sun, 3 Jun 2007 16:20:39 +0000 (16:20 +0000)] 
renamed failedinit -> cffailedinit

17 years agoMerged.
splidge [Sun, 3 Jun 2007 14:11:26 +0000 (15:11 +0100)] 
Merged.

17 years agoAdded HOOK_SERVER_LINKED message when a server enters the LS_LINKED state.
splidge [Sun, 3 Jun 2007 13:37:07 +0000 (14:37 +0100)] 
Added HOOK_SERVER_LINKED message when a server enters the LS_LINKED state.

17 years agotidy up from last nights bits, move chanservdb_updates -> chanserv
Paul [Sun, 3 Jun 2007 12:51:54 +0000 (12:51 +0000)] 
tidy up from last nights bits, move chanservdb_updates -> chanserv

17 years ago*sigh*
Paul [Sun, 3 Jun 2007 00:18:35 +0000 (00:18 +0000)] 
*sigh*

17 years agoFix IPv4 generated addresses (whilst I believe they translate to same IP (in text...
Paul [Sun, 3 Jun 2007 00:12:41 +0000 (00:12 +0000)] 
Fix IPv4 generated addresses (whilst I believe they translate to same IP (in text form), ip tree treats it differently. Add dummy nodecount module

An IP node, now contains a int of the number of users on a host as well as the number of times the ipnode is referenced

17 years agomerge
Paul [Sat, 2 Jun 2007 23:49:51 +0000 (23:49 +0000)] 
merge

17 years agofree the duplicate string
Paul [Sat, 2 Jun 2007 23:48:31 +0000 (23:48 +0000)] 
free the duplicate string

17 years agoAdd chanlev,account,authhistory.
Paul [Sat, 2 Jun 2007 23:28:49 +0000 (23:28 +0000)] 
Add chanlev,account,authhistory.

NOTE: TODO: authhistory still needs tidying as discussed -
[19:15:36] <splidge3> load in authname, accountts, lastseen, logoff, numeric
[19:15:51] <splidge3> if logoff is set, display "AUTHNAME logged in at ACCOUNTTS and out at LOGOFF"
[19:16:08] <splidge3> if logoff isn't set but lastseen is, look at "numeric" on the network and see if it matches the stated authsession
[19:16:25] <splidge3> if it does, then there was a split and it came back, so just display "AUTHNAME logged in at ACCOUNTTS and is still here"
[19:16:47] <splidge3> otherwise you can say "AUTHNAME logged in at ACCOUNTTS and disappeared at LASTSEEN, maybe to return or maybe not"

17 years agooops + modify makefile to build chanservdb_update seperately
Paul [Sat, 2 Jun 2007 23:05:45 +0000 (23:05 +0000)] 
oops + modify makefile to build chanservdb_update seperately

17 years agomerge
Paul [Sat, 2 Jun 2007 23:01:49 +0000 (23:01 +0000)] 
merge

17 years agoadd initial spewdomain function for mail domains
Paul [Sat, 2 Jun 2007 23:01:14 +0000 (23:01 +0000)] 
add initial spewdomain function for mail domains

17 years agoadd mail domains.
Paul [Sat, 2 Jun 2007 22:59:07 +0000 (22:59 +0000)] 
add mail domains.

NOTE: need to add support for 'banned' domains

17 years agomerge
splidge [Sat, 2 Jun 2007 22:51:04 +0000 (23:51 +0100)] 
merge

17 years agoonly send suspend reason if its set
Paul [Sat, 2 Jun 2007 22:24:41 +0000 (22:24 +0000)] 
only send suspend reason if its set

17 years agoCreate "unban" command in chanserv as an alias for "bandel".
splidge [Sat, 2 Jun 2007 21:59:26 +0000 (22:59 +0100)] 
Create "unban" command in chanserv as an alias for "bandel".

17 years agoUSet/Clear flag, and cleanupexempt flag
Paul [Sat, 2 Jun 2007 21:48:41 +0000 (21:48 +0000)] 
USet/Clear flag, and cleanupexempt flag

17 years agoadd whoami alias
Paul [Sat, 2 Jun 2007 20:46:20 +0000 (20:46 +0000)] 
add whoami alias

17 years agoadd cleanupdb command
Paul [Sat, 2 Jun 2007 20:45:37 +0000 (20:45 +0000)] 
add cleanupdb command

17 years agoadd version command + #define for version number
Paul [Sat, 2 Jun 2007 19:51:32 +0000 (19:51 +0000)] 
add version command + #define for version number

17 years agopassword rules
Paul [Sat, 2 Jun 2007 19:41:35 +0000 (19:41 +0000)] 
password rules

17 years agoAdded CIDR ban support.
splidge [Sat, 2 Jun 2007 19:29:44 +0000 (20:29 +0100)] 
Added CIDR ban support.

unsigned ints for mask and ipaddr have been added to the chanban structure.
If a CIDR or exact IP ban is detected, these are filled in and subsequently
used during ban matching.

A fix to channel.c to enable "reload channel" to work has also crept in, as
well as a 4-line rewrite of some retarded code in channel.c

17 years agoIf you use nsmalloc() you need to use nsfree() as well...
splidge [Sat, 2 Jun 2007 16:50:26 +0000 (17:50 +0100)] 
If you use nsmalloc() you need to use nsfree() as well...

17 years agoMake valgrind a bit happier.
splidge [Sat, 2 Jun 2007 16:23:07 +0000 (17:23 +0100)] 
Make valgrind a bit happier.

Added some new pools to nsmalloc.
Updated nick and sstring to use nsmalloc.
Changed chanservdb to use nsmalloc instead of its previous similar thing.
Made the core free up the sstring memory when it exits, and also check for
any outstanding blocks in nsmalloc.

Sundry change to allow opers to override chanserv commands by default snuck
in too.

17 years agoMergey merge.
splidge [Sat, 2 Jun 2007 16:18:04 +0000 (17:18 +0100)] 
Mergey merge.

17 years agoChanged __init and __fini to _init and _fini. Guess we didn't really need
splidge [Sat, 2 Jun 2007 16:17:13 +0000 (17:17 +0100)] 
Changed __init and __fini to _init and _fini.  Guess we didn't really need
the init code huh? :)

17 years agomerge
Paul [Sat, 2 Jun 2007 16:13:44 +0000 (16:13 +0000)] 
merge

17 years agoallow reasons to be specified when parting a channel
Paul [Sat, 2 Jun 2007 16:13:18 +0000 (16:13 +0000)] 
allow reasons to be specified when parting a channel

17 years agoAdd part reasons to lua local users.
Chris Porter [Sat, 2 Jun 2007 15:56:10 +0000 (16:56 +0100)] 
Add part reasons to lua local users.

17 years agoUpdate .hgignore.
Chris Porter [Sat, 2 Jun 2007 15:53:26 +0000 (16:53 +0100)] 
Update .hgignore.

17 years agoFix lua warnings.
Chris Porter [Sat, 2 Jun 2007 15:50:27 +0000 (16:50 +0100)] 
Fix lua warnings.

17 years agoPut the orphaned authlib.c file into its own module for now.
splidge [Sat, 2 Jun 2007 14:03:03 +0000 (15:03 +0100)] 
Put the orphaned authlib.c file into its own module for now.

17 years agoMade the "rehash" command actually rehash the modules.
splidge [Sat, 2 Jun 2007 14:02:38 +0000 (15:02 +0100)] 
Made the "rehash" command actually rehash the modules.

17 years agoMore chanserv refactoring
splidge [Sat, 2 Jun 2007 13:38:06 +0000 (14:38 +0100)] 
More chanserv refactoring

The previously monolithic "chancmds.c", "usercmds.c", and "authcmds.c" files
have been split up into multiple files in new directories "chancmds",
"usercmds" and "authcmds".

Each command source file now has a comment header which contains tags
indicating the name of the command, the level required to use it, the
maximum argument count, a short description and the name of the command
function to be called.  A perl script has been added which reads these tags
and automatically generates a file called "commandlist.c" which sets up
appropriate _init() and _fini() functions for the module.  The perl script
also generates the Makefile, so if you add a command it will be added to the
Makefile automatically.  The perl script will emit warnings if tags are
incomplete and not include that file.

A perl script called "refactor.pl" has been added which assists in the
splitting up process.  This was used to generate the new individual files in
each directory.  You may find it useful if you have locally added your own
commands to one of the old monolithic files and want it to automatically
generate new individual files for you.  Note it's not perfect, in particular
it won't notice if you have defined helper functions as well as your main
command function, so don't overwrite the checked-in version of files with
ones generated by refactor.pl unless you have made changes to the relevant
command and have checked it first.

If you want to register command aliases, create a dummy .c file with
appropriate tags (see authcmds/auth.c for an example).

17 years agoChanserv refactoring
splidge [Sat, 2 Jun 2007 11:33:03 +0000 (12:33 +0100)] 
Chanserv refactoring

The main change is that the database has been pulled into a separate module.
It now uses the psql module for database services.  With the other
refactoring changes to the newserv core, the chanservdb module is now
completely independent of the irc module - so the entire IRC stack can be
restarted without reloading the chanserv database.

Moved the database items into a subdirectory to make things tidier - other
sections will follow in time.

Also changed the top-level Makefile to support modules with their own
specific clean requirements - just add a "clean" target to the
subdirectory's Makefile and then add it to the CLEANDIRS list in the
top-level Makefile.

17 years agoAdded code to prevent attempts to set bans which are enclosed by others
splidge [Sat, 2 Jun 2007 11:26:43 +0000 (12:26 +0100)] 
Added code to prevent attempts to set bans which are enclosed by others
already on the channel by local users.

17 years agoAdded some new pool IDs.
splidge [Sat, 2 Jun 2007 11:25:36 +0000 (12:25 +0100)] 
Added some new pool IDs.

17 years agoFactored out the ban code into a separate module.
splidge [Sat, 2 Jun 2007 11:24:48 +0000 (12:24 +0100)] 
Factored out the ban code into a separate module.

This allows modules that want to use the chanban structure to represent bans
to work without the channel module being loaded.

17 years agoGeneric table loader for pqsql module
Cruicky [Sat, 2 Jun 2007 11:09:54 +0000 (12:09 +0100)] 
Generic table loader for pqsql module

17 years agoTidied up nsmalloc() to use C99 extendable structs.
splidge [Sat, 2 Jun 2007 00:21:04 +0000 (01:21 +0100)] 
Tidied up nsmalloc() to use C99 extendable structs.

17 years agoAdded a clean shutdown facility.
splidge [Sat, 2 Jun 2007 00:04:32 +0000 (01:04 +0100)] 
Added a clean shutdown facility.

A facility to unload all modules and exit has been added - just set
newserv_shutdown_pending to 1 and the main loop will trigger an exit next
time round.

Updated control's DIE command to use this.

17 years agoTwo small enhancements to depmod.pl
splidge [Sat, 2 Jun 2007 00:02:52 +0000 (01:02 +0100)] 
Two small enhancements to depmod.pl

depmod.pl will now print out an error message if it detects a circular
dependency.

Also, depmod.pl now supports the -v or --verbose switch which causes it to
print out each individual symbol dependency - so you can see why one module
depends on another.

17 years agoSeparated the authext functionality from the nick module.
splidge [Fri, 1 Jun 2007 23:59:31 +0000 (00:59 +0100)] 
Separated the authext functionality from the nick module.

The new authext module does not depend on the irc module, which allows
modules which attach items to authexts to not depend on irc.  Perfect for
allowing the IRC module to be reloaded without having to reload your service
database.

17 years agoSeperated the chanindex functionality into a separate module.
splidge [Fri, 1 Jun 2007 23:56:52 +0000 (00:56 +0100)] 
Seperated the chanindex functionality into a separate module.

The chanindex module does not depend on IRC, which allows modules which
attach to chanindexes to not depend on IRC either.  Useful for (e.g.)
allowing the IRC stack to be restarted without reloading a service database.

17 years agoAdded "nsmalloc" to the core.
splidge [Fri, 1 Jun 2007 23:54:55 +0000 (00:54 +0100)] 
Added "nsmalloc" to the core.

This is a simple malloc() wrapper which supports "pools".  It is possible to
free all allocations belonging to a given pool at the same time - perfect
for stopping modules from leaking memory.

If you want to use this in your module, add a #define to nsmalloc.h to grab
a number.

17 years agoOK, so my last patch was bullshit. Changed to make it more obvious what's
splidge [Fri, 1 Jun 2007 18:08:36 +0000 (19:08 +0100)] 
OK, so my last patch was bullshit.  Changed to make it more obvious what's
going on.

17 years agoFixed what looks like a typo in the standard async query #define.
splidge [Fri, 1 Jun 2007 14:56:51 +0000 (15:56 +0100)] 
Fixed what looks like a typo in the standard async query #define.

17 years agoAdded "HOOK_CORE_STOPERROR" which is triggered immediately before Error()
splidge [Fri, 1 Jun 2007 14:47:30 +0000 (15:47 +0100)] 
Added "HOOK_CORE_STOPERROR" which is triggered immediately before Error()
calls exit for ERR_STOP events.

This allows modules to take any emergency action they can before the service
dies.

17 years agoFixed pqsql.c so it compiles again :(.
splidge [Fri, 1 Jun 2007 14:45:35 +0000 (15:45 +0100)] 
Fixed pqsql.c so it compiles again :(.

17 years agoChanged pqsql to cope with queries longer than SSTRING_MAX in length.
splidge [Fri, 1 Jun 2007 14:38:06 +0000 (15:38 +0100)] 
Changed pqsql to cope with queries longer than SSTRING_MAX in length.

sstrings will still be used for shorter queries.

Also changed the infamous malloc nullcheck to an ERR_STOP event.

17 years agoDemoted the routine delayed kick/kill messages to ERR_DEBUG.
splidge [Fri, 1 Jun 2007 14:35:04 +0000 (15:35 +0100)] 
Demoted the routine delayed kick/kill messages to ERR_DEBUG.
The exceptional cases remain ERR_INFO.

17 years agoUpgraded some ERR_FATAL errors to ERR_STOP.
splidge [Fri, 1 Jun 2007 14:31:54 +0000 (15:31 +0100)] 
Upgraded some ERR_FATAL errors to ERR_STOP.

17 years agoAdded error severity guidelines.
splidge [Fri, 1 Jun 2007 14:13:01 +0000 (15:13 +0100)] 
Added error severity guidelines.

17 years agoAdded new error category ERR_STOP. This is flagged as a "terminal error"
splidge [Fri, 1 Jun 2007 13:56:39 +0000 (14:56 +0100)] 
Added new error category ERR_STOP.  This is flagged as a "terminal error"
and exits the program if it occurs.

17 years agoAdded externally-visible SSTRING_MAX define.
splidge [Fri, 1 Jun 2007 09:54:49 +0000 (10:54 +0100)] 
Added externally-visible SSTRING_MAX define.

This allows things which might need to allocate very long strings (like,
say, database queries) to decide whether to use a sstring or allocate
their own.

17 years agoMade control clean up its commandtree on exit.
splidge [Fri, 1 Jun 2007 09:33:20 +0000 (10:33 +0100)] 
Made control clean up its commandtree on exit.

It might be redundant to remove all those commands individually and then
call "destroycommandtree", but it means in future we can check the tree is
empty as a way of detecting leaks.