Daniel Oaks
bf04dc24f9
Upgrade password hashing.
...
Previously, we generated and prepended a long salt before generating
password hashes. This resulted in the hash verification cutting off long
before it should do. This form of salting is also not necessary with
bcrypt as it's provided by the password hashing and verification
functions themselves, so totally rip it out.
This commit also adds the functionality for the server to automagically
upgrade users to use the new hashing system, which means better
security and more assurance that people can't bruteforce passwords.
No need to apply a database upgrade to do this, whoo! \o/
2018-04-01 17:12:41 +10:00
Daniel Oaks
dcb15d619d
manual: Update date!
2018-04-01 12:55:40 +10:00
Daniel Oaks
a00cb3f8cd
manual: Add basic Commands section that just points to integrated help
2018-04-01 12:09:12 +10:00
Daniel Oaks
ada1d0a091
readme: Update ns reg instructions
2018-04-01 12:04:44 +10:00
Daniel Oaks
ab6cd599b2
Fix name of ISUPPORT token (REGCOMMANDS -> ACCCOMMANDS)
2018-04-01 12:04:25 +10:00
Daniel Oaks
d39cc5f5fe
docs: Update manual with new CS/NS commands
2018-04-01 12:00:45 +10:00
Daniel Oaks
5cbd4d1de2
Force help entries for every ChanServ command as well
2018-04-01 11:54:49 +10:00
Daniel Oaks
1c636aaec6
nickserv.go: Fix comment
2018-04-01 11:52:37 +10:00
Daniel Oaks
6fb4284e32
Refactor chanserv.go to match nickserv.go, unify the two
2018-04-01 11:51:34 +10:00
Daniel Oaks
9af74d367a
nickserv.go: Move comment to right place
2018-04-01 11:29:13 +10:00
Daniel Oaks
e0b0ccd7dc
updatetranslations script now grabs nickserv help entries
2018-04-01 11:23:14 +10:00
Daniel Oaks
7b8c4e7e91
Refactor nickserv.go to better support NS HELP and translations
2018-04-01 11:22:06 +10:00
Daniel Oaks
a39c46d470
Fix registered-only modes in docs (it's +R, not +r)
2018-04-01 09:50:22 +10:00
Daniel Oaks
0e4e074d43
Update changelog
2018-04-01 09:47:10 +10:00
Daniel Oaks
73bb43ef2e
Tweak the default fakelag cooldown juuuust a touch
2018-04-01 09:43:55 +10:00
Daniel Oaks
46c98c2cf5
Fix CHANSERV OP
2018-04-01 09:33:58 +10:00
Daniel Oaks
a67dfe37ca
Add CHANSERV OP (thanks benharri for making the request!)
2018-04-01 01:26:31 +10:00
Daniel Oaks
470965674c
Changelog updated
2018-04-01 01:00:04 +10:00
Daniel Oaks
5ce56bfb4f
Add colour charts to the default MOTD, including 16-98 extended colours
2018-04-01 00:35:41 +10:00
Shivaram Lingamneni
f83b31a413
Merge pull request #223 from mordyovits/patch-1
...
README.md: self-signed, not unsigned
2018-03-29 17:06:15 -04:00
Mordy Ovits
5a367b8c6c
README.md: self-signed, not unsigned
2018-03-29 12:34:02 -04:00
Shivaram Lingamneni
7cfa75a59e
Merge pull request #218 from slingamn/socketwriter.1
...
refactor irc.Socket
2018-03-28 13:26:03 -04:00
Shivaram Lingamneni
65f2e95d2b
Merge pull request #222 from slingamn/fakelag.3
...
implement fakelag (#189 )
2018-03-28 13:25:49 -04:00
Shivaram Lingamneni
36018174b0
default fakelag to off, add explicit cooldown config
2018-03-28 13:18:08 -04:00
Daniel Oaks
237931cd00
Merge pull request #220 from slingamn/issue217.1
...
partial fix for #217
2018-03-28 12:21:19 +10:00
Daniel Oaks
abb1825ee8
Merge pull request #219 from slingamn/travis.1
...
try to fix travis by pinning a goreleaser release
2018-03-28 12:20:33 +10:00
Shivaram Lingamneni
1bf5e2a7c8
implement fakelag ( #189 )
2018-03-22 11:04:21 -04:00
Shivaram Lingamneni
a8b952da77
store maxSendQBytes in a uint32 to avoid alignment problems
...
The sync.atomic documentation says:
"On both ARM and x86-32, it is the caller's responsibility to arrange
for 64-bit alignment of 64-bit words accessed atomically."
2018-03-19 00:24:20 -04:00
Shivaram Lingamneni
2885b37768
partial fix for #217
...
See discussion on issue; this might not be a complete fix but it's
definitely better than the current behavior.
2018-03-18 00:12:50 -04:00
Shivaram Lingamneni
d1f5c59eef
fix #190
2018-03-17 23:26:07 -04:00
Shivaram Lingamneni
8fd1446627
tweak: clean up Socket.Close()
2018-03-16 18:16:04 -04:00
Shivaram Lingamneni
d324418df4
try to fix travis by pinning a goreleaser release
2018-03-16 13:16:23 -04:00
Shivaram Lingamneni
0a432c9d99
do an actual nonblocking send instead of the len() trick
2018-03-16 12:39:11 -04:00
Shivaram Lingamneni
fa5d4be718
refactor irc.Socket
2018-03-15 19:11:29 -04:00
Daniel Oaks
e3e714059c
Merge pull request #215 from slingamn/issue214
...
fix #214
2018-03-14 10:00:40 -07:00
Shivaram Lingamneni
f5f6b95662
fix #214
2018-03-14 12:51:53 -04:00
Shivaram Lingamneni
b0f262bc0c
Merge pull request #206 from slingamn/ghost.2
...
nickserv: implement GHOST, GROUP, DROP, and INFO
2018-03-14 09:42:20 -04:00
Shivaram Lingamneni
b8f37e4e6c
fix bad interaction between nickTimer.Stop() and accounts.Logout()
...
Sequence of events:
1. client.nickTimer.Stop()
2. client.server.accounts.Logout(client)
3. accounts sees that client is no longer logged in, does client.nickTimer.Touch()
4. 30 seconds later, RandomlyRename resurrects the zombie client
2018-03-14 08:43:50 -04:00
Shivaram Lingamneni
fd34c78d6b
add sadrop command
2018-03-14 06:50:26 -04:00
Shivaram Lingamneni
c6124f9d8a
Merge pull request #210 from slingamn/pprof.2
...
add an option to expose a pprof http endpoint
2018-03-13 18:05:51 -04:00
Shivaram Lingamneni
288203152a
comment out the pprof setting in the example config
2018-03-13 18:04:15 -04:00
Shivaram Lingamneni
211ed6af99
add an option to expose a pprof http endpoint
2018-03-13 16:55:30 -04:00
Shivaram Lingamneni
679f25491c
can't reserve a nick that's the name of an unverified account
2018-03-11 14:40:36 -04:00
Shivaram Lingamneni
47b9fe50be
can't register an account with the same name as a registered nick
2018-03-11 13:59:02 -04:00
Shivaram Lingamneni
a022befffe
nickserv: implement GHOST, GROUP, DROP, and INFO
2018-03-02 17:05:47 -05:00
Daniel Oaks
b211fd35da
Merge pull request #205 from slingamn/issue204
...
fix #204
2018-03-01 10:07:32 -08:00
Shivaram Lingamneni
ef99bc48d1
fix #204
...
Empty channels were only cleaned up on PART, not QUIT.
2018-03-01 11:10:46 -05:00
Daniel Oaks
898fb41485
Merge pull request #203 from slingamn/rereg
...
two nickname reservation fixes
2018-02-28 14:40:32 -08:00
Shivaram Lingamneni
757566ca45
turn down default verify timeout
2018-02-28 17:31:56 -05:00
Shivaram Lingamneni
945dec9964
ensure the nick timeout mechanism is cleaned up on client quit
2018-02-28 17:29:18 -05:00