]> jfr.im git - irc/quakenet/newserv.git/log
irc/quakenet/newserv.git
16 years agoRemoved unnecessary conditional (*cough* and stray semicolon *cough*)
splidge [Tue, 11 Mar 2008 18:28:38 +0000 (18:28 +0000)] 
Removed unnecessary conditional (*cough* and stray semicolon *cough*)

16 years agoAdded code to remove channels when no +dqb users are left.
splidge [Tue, 11 Mar 2008 18:19:28 +0000 (18:19 +0000)] 
Added code to remove channels when no +dqb users are left.

Made relevant calls in chanlev/removeuser/cleanupdb.

16 years agoYou can requestowner if you are +k now.
splidge [Tue, 11 Mar 2008 17:53:33 +0000 (17:53 +0000)] 
You can requestowner if you are +k now.
You can't have +t if you don't have one of +nmovk.

This leaves just channels with only +bdq users...

16 years agoFix a few memory leaks.
Chris Porter [Tue, 11 Mar 2008 17:00:51 +0000 (17:00 +0000)] 
Fix a few memory leaks.

16 years agoMerge.
Chris Porter [Tue, 11 Mar 2008 16:53:43 +0000 (16:53 +0000)] 
Merge.

16 years agoUm, used the wrong angle bracket :(.
splidge [Tue, 11 Mar 2008 16:53:04 +0000 (16:53 +0000)] 
Um, used the wrong angle bracket :(.

16 years agoMerge.
Chris Porter [Tue, 11 Mar 2008 16:39:36 +0000 (16:39 +0000)] 
Merge.

16 years agoHopefully fix illegal reference to free'd values.
splidge [Tue, 11 Mar 2008 16:36:30 +0000 (16:36 +0000)] 
Hopefully fix illegal reference to free'd values.

16 years agoTweaked some more messages.
splidge [Tue, 11 Mar 2008 15:10:59 +0000 (15:10 +0000)] 
Tweaked some more messages.

16 years agoAdd USE_VALGRIND support to sstring.
Chris Porter [Tue, 11 Mar 2008 15:06:46 +0000 (15:06 +0000)] 
Add USE_VALGRIND support to sstring.

16 years agoAdded RESET option to CHANSTAT.
splidge [Tue, 11 Mar 2008 14:59:41 +0000 (14:59 +0000)] 
Added RESET option to CHANSTAT.

16 years agoAdd sha256 for old versions of python.
Chris Porter [Tue, 11 Mar 2008 14:51:44 +0000 (14:51 +0000)] 
Add sha256 for old versions of python.

16 years agoMake Q9 set +o, users have no other way of identifying it's a bona fide service.
Chris Porter [Tue, 11 Mar 2008 03:44:37 +0000 (03:44 +0000)] 
Make Q9 set +o, users have no other way of identifying it's a bona fide service.

16 years agoDoh, autogenerated files.
Chris Porter [Tue, 11 Mar 2008 03:29:12 +0000 (03:29 +0000)] 
Doh, autogenerated files.

16 years agoChanlev history has an optional duration apparently.
Chris Porter [Tue, 11 Mar 2008 03:23:42 +0000 (03:23 +0000)] 
Chanlev history has an optional duration apparently.

16 years agoDon't let helpers see opers flags.
Chris Porter [Tue, 11 Mar 2008 03:11:53 +0000 (03:11 +0000)] 
Don't let helpers see opers flags.

16 years agoMerge.
Chris Porter [Tue, 11 Mar 2008 02:54:07 +0000 (02:54 +0000)] 
Merge.

16 years agodomainmode now behaves like all other commands with flags.
Chris Porter [Tue, 11 Mar 2008 02:51:51 +0000 (02:51 +0000)] 
domainmode now behaves like all other commands with flags.

16 years agoAdd remaining help.
Chris Porter [Tue, 11 Mar 2008 02:43:56 +0000 (02:43 +0000)] 
Add remaining help.
spewpass now doesn't allow spewing of staff passwords.
suspenduser now doesn't allow opers to suspend staff accounts.

16 years agoAttempt to import clean unloading wrt. pqsql into Q9.
Chris Porter [Tue, 11 Mar 2008 01:58:53 +0000 (01:58 +0000)] 
Attempt to import clean unloading wrt. pqsql into Q9.

16 years agoAdd a way of doing 'clean' unloads in pqsql.
Chris Porter [Tue, 11 Mar 2008 01:58:27 +0000 (01:58 +0000)] 
Add a way of doing 'clean' unloads in pqsql.
Doesn't cover table stuff at the moment.

16 years agoMore help, cleanupdb is now DEV only.
Chris Porter [Tue, 11 Mar 2008 01:15:59 +0000 (01:15 +0000)] 
More help, cleanupdb is now DEV only.

16 years agoRemove QUFLAG_RESTRICTED; it doesn't do anything.
splidge [Tue, 11 Mar 2008 00:54:20 +0000 (00:54 +0000)] 
Remove QUFLAG_RESTRICTED; it doesn't do anything.

16 years agoAssorted tweaks.
splidge [Mon, 10 Mar 2008 20:29:45 +0000 (20:29 +0000)] 
Assorted tweaks.

Changed L import so you can't be imported with +agov.
Changed some help text
Changed UNBANME so it just aborts if it bumps into a registered ban it can't remove.

16 years agoMade adduser and removeuser not say "Done." if they didn't manage to do anything.
splidge [Mon, 10 Mar 2008 18:33:37 +0000 (18:33 +0000)] 
Made adduser and removeuser not say "Done." if they didn't manage to do anything.

16 years agoWhen importing a +c (autolimit) channel, add +l to forcemodes.
splidge [Mon, 10 Mar 2008 18:21:57 +0000 (18:21 +0000)] 
When importing a +c (autolimit) channel, add +l to forcemodes.

16 years agoRemoved some useless fluff in cleanupdb.c
splidge [Mon, 10 Mar 2008 18:19:45 +0000 (18:19 +0000)] 
Removed some useless fluff in cleanupdb.c

16 years agoRemoved NEEDAUTH flag since it didn't do anything useful.
splidge [Mon, 10 Mar 2008 18:07:57 +0000 (18:07 +0000)] 
Removed NEEDAUTH flag since it didn't do anything useful.
We represent a user who has never authed with lastauth=0. Expiry of never-authed users can be done based on creation time.
Updated the import script to behave accordingly.

16 years agoAdded database conversion script (chanserv/utils/conv4.pl)
splidge [Mon, 10 Mar 2008 17:44:58 +0000 (17:44 +0000)] 
Added database conversion script (chanserv/utils/conv4.pl)
Added missing chanserv/chancmds/chanophistory.c

16 years agoTightened up the auth code a bit.
splidge [Mon, 10 Mar 2008 16:15:47 +0000 (16:15 +0000)] 
Tightened up the auth code a bit.

The user limit check is now done before logging last user@host etc.
Messages are now sent to other account users when someone auths - and a different message sent if the account is at the auth limit.
Fixed up a couple of other incorrect error messages (in removeuser.c).
chancmds/commandlist.c seems to be a changeset or two behind so there's a new one of those too.

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.