]> jfr.im git - irc/quakenet/newserv.git/log
irc/quakenet/newserv.git
16 years agoMerge.
splidge [Mon, 10 Mar 2008 22:12:55 +0000 (22:12 +0000)] 
Merge.

16 years agoAdded CHANOPHISTORY command (behaves the same as old Q's AUTHHISTORY). Also added...
splidge [Mon, 10 Mar 2008 15:15:43 +0000 (15:15 +0000)] 
Added CHANOPHISTORY command (behaves the same as old Q's AUTHHISTORY). Also added the backend logging of op events.
Tidied up error message in userflags/authhistory (i.e. a message to say you can't list for the named user).

16 years agoFix bug in maildomain code where the email is null.
Chris Porter [Mon, 10 Mar 2008 14:50:43 +0000 (14:50 +0000)] 
Fix bug in maildomain code where the email is null.

16 years agoAdd maillock.
Chris Porter [Mon, 10 Mar 2008 14:49:46 +0000 (14:49 +0000)] 
Add maillock.

16 years agoTurn up MAXAUTHATTEMPTS to 5 (consistent with Q)
splidge [Mon, 10 Mar 2008 12:44:06 +0000 (12:44 +0000)] 
Turn up MAXAUTHATTEMPTS to 5 (consistent with Q)

16 years agoAdded summary information to chanlev.
splidge [Mon, 10 Mar 2008 11:54:51 +0000 (11:54 +0000)] 
Added summary information to chanlev.
Fixed core bug in suspendlist (it didn't like null suspend reasons)

16 years agoAdded missing deregisterhook() call...
splidge [Mon, 10 Mar 2008 11:35:21 +0000 (11:35 +0000)] 
Added missing deregisterhook() call...

16 years agoSince the TODO list is empty code wise... 1.00-RC1 =)
Chris Porter [Mon, 10 Mar 2008 05:04:25 +0000 (05:04 +0000)] 
Since the TODO list is empty code wise... 1.00-RC1 =)

16 years agoAdd legacy-md5 challengeauth support.
Chris Porter [Mon, 10 Mar 2008 04:43:36 +0000 (04:43 +0000)] 
Add legacy-md5 challengeauth support.
Add warnings when legacy-md5 is used.
Reduce challenge size to 16 bytes.

16 years agoAdd reset logic to the batcher, along with the final emails.
Chris Porter [Mon, 10 Mar 2008 04:16:29 +0000 (04:16 +0000)] 
Add reset logic to the batcher, along with the final emails.

16 years agoAdd reset.
Chris Porter [Mon, 10 Mar 2008 03:34:45 +0000 (03:34 +0000)] 
Add reset.

16 years agoNeed some sort of SQL generator!
Chris Porter [Mon, 10 Mar 2008 02:24:07 +0000 (02:24 +0000)] 
Need some sort of SQL generator!

16 years agoMerge.
splidge [Mon, 10 Mar 2008 22:01:50 +0000 (22:01 +0000)] 
Merge.

16 years agoAdd lastemail field.
Chris Porter [Mon, 10 Mar 2008 02:17:31 +0000 (02:17 +0000)] 
Add lastemail field.

16 years agoMerge.
splidge [Mon, 10 Mar 2008 22:01:27 +0000 (22:01 +0000)] 
Merge.

16 years agoAdded "upgrade" chantype.
splidge [Mon, 10 Mar 2008 01:57:26 +0000 (01:57 +0000)] 
Added "upgrade" chantype.

16 years agosuspendtime is now set where you'd expect, and displayed too
Chris Porter [Mon, 10 Mar 2008 01:54:44 +0000 (01:54 +0000)] 
suspendtime is now set where you'd expect, and displayed too

16 years agoTwo small bugfixes.
splidge [Mon, 10 Mar 2008 01:51:41 +0000 (01:51 +0000)] 
Two small bugfixes.

I'm not sure why we're getting a new version of authcmds/commandlist.c though, but hey it's autogenerated!

16 years agoWhoops.
Chris Porter [Mon, 10 Mar 2008 01:28:12 +0000 (01:28 +0000)] 
Whoops.

16 years agoReadd lockuntil, add missing paramater to insert query.
Chris Porter [Mon, 10 Mar 2008 01:23:41 +0000 (01:23 +0000)] 
Readd lockuntil, add missing paramater to insert query.

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

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

16 years agoBacked out changeset 6fc7b90351d8
Chris Porter [Mon, 10 Mar 2008 01:13:44 +0000 (01:13 +0000)] 
Backed out changeset 6fc7b90351d8

16 years agoAdditional checks added to suspendchan/unsuspendchan for non-existent channels.
Chris Porter [Mon, 10 Mar 2008 01:06:00 +0000 (01:06 +0000)] 
Additional checks added to suspendchan/unsuspendchan for non-existent channels.

16 years agoAdded suspendtime fields to users and channels.
splidge [Mon, 10 Mar 2008 01:05:31 +0000 (01:05 +0000)] 
Added suspendtime fields to users and channels.
Updated database code to load and save them as needed.
Updated new channel/user code to initialize them.

Also fixed a bug where the BAN alias wasn't working properly.

16 years agoAdd lockuntil to db/structs.
Chris Porter [Mon, 10 Mar 2008 01:04:11 +0000 (01:04 +0000)] 
Add lockuntil to db/structs.

16 years agosendpassword -> helper
Chris Porter [Mon, 10 Mar 2008 00:42:56 +0000 (00:42 +0000)] 
sendpassword -> helper

16 years agoAdd more validation to bantimer.
Chris Porter [Mon, 10 Mar 2008 00:33:16 +0000 (00:33 +0000)] 
Add more validation to bantimer.

16 years agoAdditional validation in tempban/autolimit.
Chris Porter [Mon, 10 Mar 2008 00:27:40 +0000 (00:27 +0000)] 
Additional validation in tempban/autolimit.

16 years agoDetect attempts to change email to same as current one.
Chris Porter [Sun, 9 Mar 2008 21:12:52 +0000 (21:12 +0000)] 
Detect attempts to change email to same as current one.

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

16 years agoAlter requestpassword to behave the same as Q.
Chris Porter [Sun, 9 Mar 2008 20:47:53 +0000 (20:47 +0000)] 
Alter requestpassword to behave the same as Q.

16 years agoAdd some better emails.
Chris Porter [Sun, 9 Mar 2008 18:39:30 +0000 (18:39 +0000)] 
Add some better emails.
Add more string replacement and the option for templates to redirect to different email addresses.

16 years agoAdd privilidge checking to sendpassword/requestpassword.
Chris Porter [Sun, 9 Mar 2008 17:55:36 +0000 (17:55 +0000)] 
Add privilidge checking to sendpassword/requestpassword.
Move sendpassword to authcmds.
Fix bug in findnearestmaildomain.

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

16 years agoChanged HELP so non-privileged users can't see help for priviliged commands.
splidge [Sun, 9 Mar 2008 17:48:32 +0000 (17:48 +0000)] 
Changed HELP so non-privileged users can't see help for priviliged commands.

16 years agoBegin more work on the batcher.
Chris Porter [Sun, 9 Mar 2008 17:16:25 +0000 (17:16 +0000)] 
Begin more work on the batcher.

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

16 years agoAdded BAN as an alias to PERMBAN.
splidge [Sun, 9 Mar 2008 16:19:40 +0000 (16:19 +0000)] 
Added BAN as an alias to PERMBAN.
Made it clear that UNBAN is an alias for BANDEL.
Updated another couple of messages.

16 years agoAdd sendpassword.
Chris Porter [Sun, 9 Mar 2008 15:55:54 +0000 (15:55 +0000)] 
Add sendpassword.

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 agoAdded trust flag.
Chris Porter [Sun, 9 Mar 2008 04:53:33 +0000 (04:53 +0000)] 
Added trust flag.
Some people haven't been keeping the _ALL defines upto date!
Admins can now set users as cleanup exempt.

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

16 years agoRemove some more retarded uses of ircd_strcmp.
Chris Porter [Sun, 9 Mar 2008 04:35:53 +0000 (04:35 +0000)] 
Remove some more retarded uses of ircd_strcmp.

16 years agothe maildomain implementation has been fixed.
Chris Porter [Sun, 9 Mar 2008 04:33:30 +0000 (04:33 +0000)] 
the maildomain implementation has been fixed.

stuff that was wrong that I can rememeber:
- it created a table that had one number of fields, select code expected another number, insert code expected another different number, and update code didn't update most of the fields, but did escape them (though it never used the value).
- lots of uninitalised variables, e.g. flags and account limits
- in the function that built up a tree of domains, the author didn't realise how recursion works, how it should work:
  address: blah@kings.cam.ac.uk, kings.cam.ac.uk, cam.ac.uk, ac.uk, uk, ending up with kings.cam.ac.uk->cam.ac.uk->ac.uk->uk
  how it was working:
  address: blah@kings.cam.ac.uk, kings.cam.ac.uk, cam.ac.uk, ac.uk, uk
  now when unwinding the stack, it keeps looking for dots, despite the fact we've recursed already and have the tree!
  now it continues in cam.ac.uk looking for dots, so that ends up looking like cam.ac.uk->uk, and the full domain tree ends up as kings.cam.ac.uk->uk
  W T F
- didn't check for banned addresses but had the flag defined
- didn't show banned flag in spewdomain code
- all 5 pieces of code that attempted to extract the local part of email address using the wrong half (i.e. the domain)
- hello attempted to check for too many accounts on one email address but got the code wrong, however email didn't check at all
- was using match to compare the local part of email addresses
- was using ircd_strcmp to compare domains
- in hello a user could use up an unlimited amount of memory by passing in new domain for each user, if HELLO failed a maildomain wasn't deallocated.

how did this get committed?
I need to look over this stuff again.

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

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 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.