Commit Graph

3183 Commits

Author SHA1 Message Date
Alex Jaspersen d5cec62df3 Call ApplyUserModeChanges for default user modes.
This ensures that counts like the number of invisible users are updated
correctly.
2020-05-11 05:41:40 +00:00
Shivaram Lingamneni c738a754a2 treat channel founder as such even if they don't have +q
This affects /TOPIC, /INVITE, and a few others.
2020-05-10 23:17:09 -04:00
Shivaram Lingamneni 89984f9c36 fix untrusted PROXY lines being accepted
As of 3dc5c8de78, the PROXY-before-TLS proxy line
and any proxy information carried in X-Forwarded-For
do not count as the "first line", so an additional
client-supplied PROXY line would have been accepted.
2020-05-10 19:12:18 -04:00
Shivaram Lingamneni d562c6d25a more informative IP connection logline 2020-05-10 19:04:54 -04:00
Shivaram Lingamneni 0f7d58b1c5 fix #996 2020-05-10 06:17:11 -04:00
Shivaram Lingamneni 93f1e5b5b8
Merge pull request #995 from slingamn/issue994_unknowncommand.1
fix #994
2020-05-08 13:12:16 -07:00
Shivaram Lingamneni f2e6142136
Merge pull request #993 from slingamn/issue952_cloak_db.1
fix #952
2020-05-08 13:11:48 -07:00
Shivaram Lingamneni 6f688a4644 fix #994 2020-05-08 05:50:10 -04:00
Shivaram Lingamneni 36dab4e57d review fix 2020-05-08 02:47:08 -04:00
Shivaram Lingamneni 215d36cff1 enable cloaking by default 2020-05-08 01:26:50 -04:00
Shivaram Lingamneni 8c74b0660b fix #952 2020-05-08 01:18:00 -04:00
Shivaram Lingamneni d187cc5512
Merge pull request #991 from ajaspers/who_invisible
Hide +i users from WHO * queries.
2020-05-07 19:09:38 -07:00
Alex Jaspersen a6e4a26cbb Performance optimization for determining friends in WHO <mask>.
Construct a hash set of the user's channels and check that rather than
querying channel membership, to reduce the number of locks that need to be
acquired.
2020-05-08 01:55:47 +00:00
Shivaram Lingamneni d1c183777a
Merge pull request #992 from slingamn/simplify
simplify listener rehash logic
2020-05-07 11:11:58 -07:00
Shivaram Lingamneni 17909a5db0 simplify listener rehash logic 2020-05-07 06:42:50 -04:00
Shivaram Lingamneni c426cc8bab
Merge pull request #989 from slingamn/proxy_allowed_localhost
new recommended default: proxy allowed from localhost
2020-05-06 20:22:28 -07:00
Alex Jaspersen b3cfcc1289 Show users in WHO queries if they are friends, i.e. they share a channel. 2020-05-07 03:00:28 +00:00
Shivaram Lingamneni 98b91e7bdd review fix 2020-05-06 22:52:01 -04:00
Shivaram Lingamneni 079719c57c
Merge pull request #988 from slingamn/recommended_port
use 8097 as the example websocket port
2020-05-06 19:28:41 -07:00
Alex Jaspersen 1ef41d6020 Hide +i users from WHO * queries.
Fixes #990.
2020-05-07 00:16:22 +00:00
Shivaram Lingamneni 3f54390d97 provide a link to the testnet 2020-05-06 17:10:23 -04:00
Shivaram Lingamneni 07fe28af95 new recommended default: proxy allowed from localhost 2020-05-06 17:00:03 -04:00
Shivaram Lingamneni ddf52f85b7 use 8097 as the example websocket port 2020-05-06 14:01:36 -04:00
Shivaram Lingamneni 147e652e99
Merge pull request #987 from slingamn/issue982_certerror
fix #982
2020-05-06 03:22:47 -07:00
Shivaram Lingamneni 14bcd46588 fix #982 2020-05-06 05:56:00 -04:00
Shivaram Lingamneni b0f692e1ca
Merge pull request #984 from slingamn/issue983_bancomp
fix #983
2020-05-05 22:27:00 -07:00
Shivaram Lingamneni 2c231853b5
Merge pull request #986 from slingamn/issue985_mailto
fix #985
2020-05-05 22:26:46 -07:00
Shivaram Lingamneni ab8f542c11 fix #985 2020-05-06 01:15:04 -04:00
Shivaram Lingamneni 984794eb1e fix #983 2020-05-06 01:07:06 -04:00
Shivaram Lingamneni d37af694af
Merge pull request #979 from slingamn/websockets_draft.7
websockets implementation
2020-05-05 17:54:52 -07:00
Shivaram Lingamneni c92192ef48 review fixes; add submatch support to glob 2020-05-05 17:20:55 -04:00
Shivaram Lingamneni 872fd3e77c
Merge pull request #975 from slingamn/shorten_batch_id
use shorter batch IDs
2020-05-05 03:27:43 -07:00
Shivaram Lingamneni 5ae6f6b927 fix incorrect propagation of listener errors 2020-05-05 06:25:28 -04:00
Shivaram Lingamneni 4ef6c58317 work around a chrome bug 2020-05-05 04:13:55 -04:00
Shivaram Lingamneni 620e30293d use consistent spelling of WebSocket 2020-05-05 04:07:19 -04:00
Shivaram Lingamneni 3d3aec6979 fix missing err check, thanks @eklitzke 2020-05-04 23:42:34 -04:00
Shivaram Lingamneni 3dc5c8de78 more work on websocket support 2020-05-04 23:26:51 -04:00
Shivaram Lingamneni 2ef87598c4
Merge pull request #977 from ajaspers/list-regd-users+chans
Add ChanServ and NickServ LIST commands.
2020-05-03 19:30:06 -07:00
Alex Jaspersen b363a01a6f Read accounts and grouped nicks in same transaction. 2020-05-04 02:20:28 +00:00
Alex Jaspersen 73bea0168d Read account names and additional nicknames from the db to avoid casefolding issues. 2020-05-04 02:14:55 +00:00
Alex Jaspersen 6019ed1e29 Add ChanServ and NickServ LIST commands.
These commands search the registered nicknames/channels for ones
matching the provided regex, or return the entire list.

Only operators with chanreg (for ChanServ) or accreg (for NickServ)
capabilities can use LIST.
2020-05-04 00:51:39 +00:00
Shivaram Lingamneni 3a571f28ac use shorter batch IDs 2020-05-03 03:27:13 -04:00
Shivaram Lingamneni 25813f6d3a Merge remote-tracking branch 'origin/master' into websockets_draft.2 2020-04-30 22:16:07 -04:00
Hubert Hirtz b71e23d814 WebSockets: add configuration doc 2020-04-30 23:21:19 +02:00
Hubert Hirtz f5930444f7 WebSocket support 2020-04-30 23:17:33 +02:00
Shivaram Lingamneni 11e1939c9b
Merge pull request #970 from slingamn/default_invisible
make +i the recommended default usermode
2020-04-29 22:57:43 -07:00
Shivaram Lingamneni 4548eee6f1 make +i the recommended default usermode 2020-04-30 01:47:58 -04:00
Shivaram Lingamneni 8898d34948
Merge pull request #969 from ajaspers/master
Add support for default user modes. #942
2020-04-29 22:45:27 -07:00
Alex Jaspersen b3a7e5c996 Set default user modes when always-on clients reconnect.
Add default-user-modes configuration to conventional.yaml.
Fix comment on DefaultUserModes.
2020-04-30 04:38:19 +00:00
Alex Jaspersen 52910a185c Add test for ParseDefaultUserModes. 2020-04-30 03:54:18 +00:00