]> jfr.im git - irc/quakenet/newserv.git/log
irc/quakenet/newserv.git
16 years agoVarious user friendliness improvements.
splidge [Sun, 9 Mar 2008 15:51:14 +0000 (15:51 +0000)] 
Various user friendliness improvements.
Made insufficient parameters message show the usage of the command concerned.
Made some messages a bit friendlier
Changed primary auth command to AUTH (rather than LOGIN)
Fixed up a couple of help messages.

16 years agoAdd help for HELP and VERSION, also capitalised SHOWCOMMANDS for consistency.
splidge [Sun, 9 Mar 2008 01:55:36 +0000 (01:55 +0000)] 
Add help for HELP and VERSION, also capitalised SHOWCOMMANDS for consistency.

16 years agoMerge.
splidge [Mon, 10 Mar 2008 21:46:10 +0000 (21:46 +0000)] 
Merge.

16 years agoAdd a cap on the limit of hellos per session.
Chris Porter [Sun, 9 Mar 2008 01:45:56 +0000 (01:45 +0000)] 
Add a cap on the limit of hellos per session.

16 years agoMerge.
splidge [Sun, 9 Mar 2008 01:43:49 +0000 (01:43 +0000)] 
Merge.

16 years agoAdded help for most remaining user commands.
splidge [Sun, 9 Mar 2008 01:33:36 +0000 (01:33 +0000)] 
Added help for most remaining user commands.
Made LANGUAGE oper only and removed language display from whois for now.

16 years agoKill suspended authed users on merge.
Chris Porter [Sun, 9 Mar 2008 01:20:06 +0000 (01:20 +0000)] 
Kill suspended authed users on merge.

16 years agoFix a lot of memory leaks in the async pqsql code.
Chris Porter [Sun, 9 Mar 2008 01:09:32 +0000 (01:09 +0000)] 
Fix a lot of memory leaks in the async pqsql code.

16 years agoAdd challenge/challengeauth help.
Chris Porter [Sun, 9 Mar 2008 01:02:16 +0000 (01:02 +0000)] 
Add challenge/challengeauth help.

16 years agorecover/unbanme now remove registered bans, refactored the code from unbanmask too.
Chris Porter [Sun, 9 Mar 2008 00:51:16 +0000 (00:51 +0000)] 
recover/unbanme now remove registered bans, refactored the code from unbanmask too.

16 years agoAdd chanlev/ban limits.
Chris Porter [Sat, 8 Mar 2008 23:49:42 +0000 (23:49 +0000)] 
Add chanlev/ban limits.

16 years agoMark functions that have known leaks.
Chris Porter [Sat, 8 Mar 2008 23:00:26 +0000 (23:00 +0000)] 
Mark functions that have known leaks.

16 years ago'Fix' ban truncation problem.
Chris Porter [Sat, 8 Mar 2008 21:27:26 +0000 (21:27 +0000)] 
'Fix' ban truncation problem.

16 years agoPorted requestowner from an old branch and removed some of it's former cretinism.
Chris Porter [Sat, 8 Mar 2008 17:59:27 +0000 (17:59 +0000)] 
Ported requestowner from an old branch and removed some of it's former cretinism.

16 years agoDANGER WILL ROBINSON!
Chris Porter [Sat, 8 Mar 2008 17:06:44 +0000 (17:06 +0000)] 
DANGER WILL ROBINSON!
I've removed the suspended check in chanservuser.c, what if users wanted to remove a troublemaker from their channels?
This could have adverse affects, though I can't think of any at this time.

16 years agoAdd overlapping of bans with shorter durations to tempban.
Chris Porter [Sat, 8 Mar 2008 16:53:15 +0000 (16:53 +0000)] 
Add overlapping of bans with shorter durations to tempban.

16 years agoAdd ban overlapping detection logic to permban and tempban.
Chris Porter [Sat, 8 Mar 2008 16:43:28 +0000 (16:43 +0000)] 
Add ban overlapping detection logic to permban and tempban.

16 years agoMerge.
Chris Porter [Sat, 8 Mar 2008 14:46:19 +0000 (14:46 +0000)] 
Merge.

16 years agoMerge.
Chris Porter [Sat, 8 Mar 2008 14:41:05 +0000 (14:41 +0000)] 
Merge.

16 years agodrop previous commit
Paul [Sat, 8 Mar 2008 14:32:59 +0000 (14:32 +0000)] 
drop previous commit

16 years agoAdd support for & lookups to findreguser.
Chris Porter [Sat, 8 Mar 2008 14:29:00 +0000 (14:29 +0000)] 
Add support for & lookups to findreguser.

16 years agoUpdated ADDUSER to allow flags to be specified. Fixed a a type buf in op.c
splidge [Sat, 8 Mar 2008 14:22:14 +0000 (14:22 +0000)] 
Updated ADDUSER to allow flags to be specified.  Fixed a a type buf in op.c
The logic to "sanitise" flags is needed by both adduser and chanlev so has been factored.

16 years agoAccount timestamp of 0 is a 'special' case in snircd, designed to allow a user to...
Paul [Sat, 8 Mar 2008 14:05:10 +0000 (14:05 +0000)] 
Account timestamp of 0 is a 'special' case in snircd, designed to allow a user to reauth to enable someone to go from AC to AC:TS:ID, without reconnecting to irc.

16 years agoFix constant character warning.
Chris Porter [Sat, 8 Mar 2008 03:28:39 +0000 (03:28 +0000)] 
Fix constant character warning.

16 years agohello now checks for special characters in the desired account name.
Chris Porter [Sat, 8 Mar 2008 03:28:23 +0000 (03:28 +0000)] 
hello now checks for special characters in the desired account name.
the regex init/free functions are now called from the chanserv.c's _init/_free instead of every time the functions using the regexes are called.
why was authlib.c in it's own module? it was causing circular dependencies so it's linked into chanserv.so instead.

16 years agoMerge.
Chris Porter [Sat, 8 Mar 2008 02:59:01 +0000 (02:59 +0000)] 
Merge.

16 years agouserflags now warns about 'interesting' changes.
Chris Porter [Sat, 8 Mar 2008 02:58:32 +0000 (02:58 +0000)] 
userflags now warns about 'interesting' changes.

16 years agoAdd getpassword.
Chris Porter [Sat, 8 Mar 2008 02:42:52 +0000 (02:42 +0000)] 
Add getpassword.
Don't allow setpassword or deluser to affect staff.
Add warnings to setpassword/deluser when operations fail or complete.

16 years agoAdded help to a large number of commands.
splidge [Sat, 8 Mar 2008 00:53:03 +0000 (00:53 +0000)] 
Added help to a large number of commands.
Added accountability notice stuff to voice.

16 years agoFixed up nick module so it clears the list of nicks authed to each userid when it...
splidge [Fri, 7 Mar 2008 22:25:40 +0000 (22:25 +0000)] 
Fixed up nick module so it clears the list of nicks authed to each userid when it starts.  Needed because you can reload IRC without unloading the authext module...

16 years agoFix warning on Linux.
Chris Porter [Fri, 7 Mar 2008 20:18:35 +0000 (20:18 +0000)] 
Fix warning on Linux.

16 years agoMore cleanups.
splidge [Fri, 7 Mar 2008 19:19:34 +0000 (19:19 +0000)] 
More cleanups.

Fixed BANLIST (was trying to list bans on non-existent channel)
Added some sanity checking to TEMPBAN's duration parameter.
Added some help text.

16 years agoChanged ordering of events in joinchan to prevent desync where kick appears before...
splidge [Fri, 7 Mar 2008 16:35:51 +0000 (16:35 +0000)] 
Changed ordering of events in joinchan to prevent desync where kick appears before join.
Added sendopnoticetochannel()

16 years agoMerge.
Chris Porter [Fri, 7 Mar 2008 13:47:10 +0000 (13:47 +0000)] 
Merge.

16 years agoCHANLEV updates.
splidge [Fri, 7 Mar 2008 12:52:31 +0000 (12:52 +0000)] 
CHANLEV updates.

Added help text to CHANLEV.
Also modified listing code so masters/owners can't see other people's personal flags.  This is to avoid confusion when they cannot be removed.

16 years agoMore help system stuff.
splidge [Fri, 7 Mar 2008 12:08:07 +0000 (12:08 +0000)] 
More help system stuff.

mkcommandlist.pl will now pick out lines tagged CMDHELP: and add their content to the default help string for that command.  Added help for LOGIN as proof of concept/test.

16 years agoAdded built-in help support.
splidge [Fri, 7 Mar 2008 12:00:12 +0000 (12:00 +0000)] 
Added built-in help support.

Added beginnings of support for "built in" help.  Added a new argument to the chanservaddcommand with the help string, this is then presented to the user if no help is found in the database.  As yet only "showcommands" actually has any built in help.

16 years agoMerge.
splidge [Fri, 7 Mar 2008 11:14:58 +0000 (11:14 +0000)] 
Merge.

16 years agoSome tidying up of "personal" flags (+ijw on chanlev)
splidge [Fri, 7 Mar 2008 11:13:14 +0000 (11:13 +0000)] 
Some tidying up of "personal" flags (+ijw on chanlev)

Added a new macro to avoid repeated instances of (QCUFLAG_AUTOINVITE|QCUFLAG_HIDEWELCOME etc)
Updated so that (non-master) users see their own personal flags on a CHANLEV listing (previously these were hidden)
Added logic to remove personal flags from users who aren't known any more (this prevents people with personal flags getting stuck on the chanlev)

16 years agoSome more tidying of authtracker and related things.
splidge [Fri, 7 Mar 2008 10:13:09 +0000 (10:13 +0000)] 
Some more tidying of authtracker and related things.

Authtracker used to have 2 ways of getting userID - either from np->auth or via the chanserv macro.  These now actually do the same thing so aren't both needed any more.
Also removed the HOOK_CHANSERV_SETUSERID hook as this is now redundant - the userid is always set at ACCOUNT time (for local or remote auths) - we ignore remote ACs without userID set now.
Also a slight tidy of the condition for autocreating auths - we just look for the chanserv extension attached to the user rather than looking up the account name.

16 years agoInitially HELLO'ed users lastauth is set to 0, however the existing logic that deals...
Chris Porter [Fri, 7 Mar 2008 03:27:59 +0000 (03:27 +0000)] 
Initially HELLO'ed users lastauth is set to 0, however the existing logic that deals with new users coming in off the network hasn't been altered (i.e. it's still time(NULL)).
whois modified to display accounts that have not been used.
cleanupdb now cleans up auths that have never been used after 10 days.
requestpassword now resends the initial HELLO email if the user has never authed.

16 years agoTwo argument op/voice commands now require you to be a master (eg ops can't now silen...
Chris Porter [Fri, 7 Mar 2008 02:51:48 +0000 (02:51 +0000)] 
Two argument op/voice commands now require you to be a master (eg ops can't now silently op others).

16 years agoMerge.
Chris Porter [Fri, 7 Mar 2008 00:59:52 +0000 (00:59 +0000)] 
Merge.

16 years agoRegister authid extension in nicksearch, Q9's makefiles really do spoil you.
Chris Porter [Fri, 7 Mar 2008 00:59:26 +0000 (00:59 +0000)] 
Register authid extension in nicksearch, Q9's makefiles really do spoil you.

16 years agoMerge.
Chris Porter [Fri, 7 Mar 2008 00:50:40 +0000 (00:50 +0000)] 
Merge.

16 years agoAdd ns-authid.
Chris Porter [Fri, 7 Mar 2008 00:47:50 +0000 (00:47 +0000)] 
Add ns-authid.

16 years agoFixed silly typo that prevented the userid-only auth working.
splidge [Fri, 7 Mar 2008 00:35:35 +0000 (00:35 +0000)] 
Fixed silly typo that prevented the userid-only auth working.

16 years agoMerge.
splidge [Fri, 7 Mar 2008 00:26:02 +0000 (00:26 +0000)] 
Merge.

16 years agoVarious changes to bring us into 2008
splidge [Fri, 7 Mar 2008 00:22:31 +0000 (00:22 +0000)] 
Various changes to bring us into 2008

Removed "rup" member of activeuser (we now use authext instead)
Removed "nicks" member of reguser (we now use authext instead)
Made auths send out the userid.
Fixed up some of the more gratuitous retardedness I found along the way...

16 years agoBatcher now attempts to HELO as localhost, supports SMTPAUTH too.
Chris Porter [Thu, 6 Mar 2008 23:11:34 +0000 (23:11 +0000)] 
Batcher now attempts to HELO as localhost, supports SMTPAUTH too.

16 years agoMerge.
Chris Porter [Thu, 6 Mar 2008 15:29:17 +0000 (15:29 +0000)] 
Merge.

16 years agoFixed up isopped vs. iscreate in the join handler.
splidge [Thu, 6 Mar 2008 14:05:53 +0000 (14:05 +0000)] 
Fixed up isopped vs. iscreate in the join handler.
This should fix the bug where an autoop user joining a channel has their op taken away (by the burst) and not returned.

16 years agoMerge.
Chris Porter [Thu, 6 Mar 2008 03:46:13 +0000 (03:46 +0000)] 
Merge.

16 years agoAdd exponential backoff to batcher.
Chris Porter [Thu, 6 Mar 2008 03:40:45 +0000 (03:40 +0000)] 
Add exponential backoff to batcher.

16 years agoInitial import of email batcher.
Chris Porter [Thu, 6 Mar 2008 03:28:38 +0000 (03:28 +0000)] 
Initial import of email batcher.

16 years agoEmail table mailID is now a SERIAL, get rid of old NEWMASTERPW email type.
Chris Porter [Thu, 6 Mar 2008 01:57:24 +0000 (01:57 +0000)] 
Email table mailID is now a SERIAL, get rid of old NEWMASTERPW email type.

16 years agoDon't allow users to view other users auth attempt information in WHOIS.
Chris Porter [Thu, 6 Mar 2008 00:58:30 +0000 (00:58 +0000)] 
Don't allow users to view other users auth attempt information in WHOIS.

16 years agoAdd checkhashpass.
Chris Porter [Thu, 6 Mar 2008 00:52:51 +0000 (00:52 +0000)] 
Add checkhashpass.
Mark some messages as unused.
INFO command now requires you to be opered (hack until we decide what to do with infolines once and for all).

16 years agoChanlev can now take the +n flag, but not give it.
Chris Porter [Wed, 5 Mar 2008 18:40:52 +0000 (18:40 +0000)] 
Chanlev can now take the +n flag, but not give it.

16 years agoemail and newpass should be secure commands.
Chris Porter [Wed, 5 Mar 2008 18:24:11 +0000 (18:24 +0000)] 
email and newpass should be secure commands.

16 years agoRemove master passwords.
Chris Porter [Wed, 5 Mar 2008 18:12:25 +0000 (18:12 +0000)] 
Remove master passwords.

16 years agoAdd challengeauth support, refactor challenge stuff.
Chris Porter [Wed, 5 Mar 2008 17:26:43 +0000 (17:26 +0000)] 
Add challengeauth support, refactor challenge stuff.

16 years agoAdd md5 again, add it to hmac too.
Chris Porter [Wed, 5 Mar 2008 17:17:49 +0000 (17:17 +0000)] 
Add md5 again, add it to hmac too.

16 years agoMore work on challenge.
Chris Porter [Wed, 5 Mar 2008 15:08:05 +0000 (15:08 +0000)] 
More work on challenge.

16 years agoMore pedantry.
Chris Porter [Wed, 5 Mar 2008 14:31:17 +0000 (14:31 +0000)] 
More pedantry.

16 years agoWhoops, missed off null terminator.
Chris Porter [Wed, 5 Mar 2008 14:21:29 +0000 (14:21 +0000)] 
Whoops, missed off null terminator.

16 years agoAdd beginnings of challengeauth support.
Chris Porter [Wed, 5 Mar 2008 14:12:32 +0000 (14:12 +0000)] 
Add beginnings of challengeauth support.

16 years agoAdd HMAC_SHA1
Chris Porter [Wed, 5 Mar 2008 14:09:08 +0000 (14:09 +0000)] 
Add HMAC_SHA1

16 years agoadd ISAAC (prng) to base.
Chris Porter [Wed, 5 Mar 2008 13:12:21 +0000 (13:12 +0000)] 
add ISAAC (prng) to base.

16 years agoRemove +s channelflag and chanlev flag.
Chris Porter [Wed, 5 Mar 2008 12:47:54 +0000 (12:47 +0000)] 
Remove +s channelflag and chanlev flag.
+j/+i are now not settable by users.

16 years agoEmail regular expression was not being compiled.
Chris Porter [Wed, 5 Mar 2008 01:22:00 +0000 (01:22 +0000)] 
Email regular expression was not being compiled.

16 years agoerror.h now needs protecting from multiple includes.
splidge [Tue, 4 Mar 2008 10:55:29 +0000 (10:55 +0000)] 
error.h now needs protecting from multiple includes.

16 years agoOoops, forgot to include the source :(.
splidge [Tue, 4 Mar 2008 10:49:44 +0000 (10:49 +0000)] 
Ooops, forgot to include the source :(.

16 years agoError() events are now logged to a file.
splidge [Tue, 4 Mar 2008 10:36:19 +0000 (10:36 +0000)] 
Error() events are now logged to a file.
Also, a new hook HOOK_CORE_ERROR is triggered whenever Error() is called, with the severity and message.

16 years agoForgot to commit changes to nsmalloc.
Chris Porter [Tue, 4 Mar 2008 00:07:42 +0000 (00:07 +0000)] 
Forgot to commit changes to nsmalloc.

16 years agoCleanup comment!
Chris Porter [Mon, 3 Mar 2008 17:55:07 +0000 (17:55 +0000)] 
Cleanup comment!

16 years agoMerge.
Chris Porter [Mon, 3 Mar 2008 17:11:06 +0000 (17:11 +0000)] 
Merge.

16 years agoMove nsmalloc stuff again, this time to a seperate module.
Chris Porter [Mon, 3 Mar 2008 17:00:48 +0000 (17:00 +0000)] 
Move nsmalloc stuff again, this time to a seperate module.
Add a 'histogram'.

16 years agoAuthtracker: ignore the "nterfacer" user; it doesn't comply with the session uniquene...
splidge [Mon, 3 Mar 2008 15:52:56 +0000 (15:52 +0000)] 
Authtracker: ignore the "nterfacer" user; it doesn't comply with the session uniqueness requirements and it's not very interesting to track its sessions anyway.

16 years agoMake newserv more valgrind friendly, i.e. remove dlmalloc and add USE_VALGRIND to...
Chris Porter [Mon, 3 Mar 2008 14:49:22 +0000 (14:49 +0000)] 
Make newserv more valgrind friendly, i.e. remove dlmalloc and add USE_VALGRIND to nsmalloc.

16 years agoReorganise information in nsmalloc stats.
Chris Porter [Mon, 3 Mar 2008 14:04:53 +0000 (14:04 +0000)] 
Reorganise information in nsmalloc stats.

16 years agoMerge.
Chris Porter [Mon, 3 Mar 2008 13:42:30 +0000 (13:42 +0000)] 
Merge.

16 years agoAdd more stats to nsmalloc.
Chris Porter [Mon, 3 Mar 2008 13:41:08 +0000 (13:41 +0000)] 
Add more stats to nsmalloc.

16 years agoRefactor nsmalloc statistics in preperation for more.
Chris Porter [Mon, 3 Mar 2008 13:24:57 +0000 (13:24 +0000)] 
Refactor nsmalloc statistics in preperation for more.

16 years agoInitial import of accountflags.
Chris Porter [Sat, 1 Mar 2008 02:10:59 +0000 (02:10 +0000)] 
Initial import of accountflags.

16 years agoDie command warning wasn't being sent to anyone.
Chris Porter [Fri, 29 Feb 2008 21:36:16 +0000 (21:36 +0000)] 
Die command warning wasn't being sent to anyone.

16 years agoAdd malloc checking to lua/nterfacer/trojanscan.
Chris Porter [Fri, 29 Feb 2008 21:04:49 +0000 (21:04 +0000)] 
Add malloc checking to lua/nterfacer/trojanscan.
Cosmetic alteration to nsmalloc output.

16 years agoT now schedules channel joins after 60 seconds.
Chris Porter [Fri, 29 Feb 2008 20:50:59 +0000 (20:50 +0000)] 
T now schedules channel joins after 60 seconds.

16 years agoThis should be typedef'ed.
Chris Porter [Fri, 29 Feb 2008 20:50:46 +0000 (20:50 +0000)] 
This should be typedef'ed.

16 years agoAdd real pool size and pool names.
Chris Porter [Fri, 29 Feb 2008 20:41:32 +0000 (20:41 +0000)] 
Add real pool size and pool names.

16 years agoWarning fix.
Chris Porter [Fri, 29 Feb 2008 03:11:46 +0000 (03:11 +0000)] 
Warning fix.

16 years agoMerge.
Chris Porter [Fri, 29 Feb 2008 02:18:24 +0000 (02:18 +0000)] 
Merge.

16 years agonterface to nterfacer, now using nsmalloc.
Chris Porter [Fri, 29 Feb 2008 02:14:49 +0000 (02:14 +0000)] 
nterface to nterfacer, now using nsmalloc.

16 years agoMissed one...
Chris Porter [Fri, 29 Feb 2008 02:01:13 +0000 (02:01 +0000)] 
Missed one...

16 years agoMerge.
Chris Porter [Fri, 29 Feb 2008 01:47:54 +0000 (01:47 +0000)] 
Merge.

16 years agoBacked out changeset a72bce46833cc21482634553d27b390bdaaabd46
Chris Porter [Fri, 29 Feb 2008 01:47:50 +0000 (01:47 +0000)] 
Backed out changeset a72bce46833cc21482634553d27b390bdaaabd46
Not sure if this is supposed to be committed yet.

16 years agoFix warnings.
Chris Porter [Fri, 29 Feb 2008 01:33:10 +0000 (01:33 +0000)] 
Fix warnings.

16 years agoAdd nsmalloc stats to control.
Chris Porter [Fri, 29 Feb 2008 01:16:10 +0000 (01:16 +0000)] 
Add nsmalloc stats to control.

16 years agotrojanscan and lua now use nsmalloc.
Chris Porter [Fri, 29 Feb 2008 01:15:55 +0000 (01:15 +0000)] 
trojanscan and lua now use nsmalloc.

16 years agonsfree is now O(1), add nsrealloc and statistics.
Chris Porter [Fri, 29 Feb 2008 01:15:03 +0000 (01:15 +0000)] 
nsfree is now O(1), add nsrealloc and statistics.