Daniel Oaks
f7f049973f
Rip out REST API and web interface.
It's not really used and I'd rather not have it here unless I'm able to actively maintain it properly and build out the web interface.
I might re-add it later but for now I'd rather not have it unless anyone's actively using it.
6 years ago
Daniel Oaks
04d5d2fcc2
monitor: Fix target output when adding targets
6 years ago
Shivaram Lingamneni
d39ee2fafa
fix: RPL_MONONLINE must be server-prefixed
also, remove the self-notification check; clients are probably not
monitoring themselves, and it doesn't much matter if they are
6 years ago
Shivaram Lingamneni
84c1533b53
review fix: report unfolded nicks in `/monitor l` when possible
6 years ago
Shivaram Lingamneni
3877db2391
review fixes: rename MonitorManager methods
6 years ago
Shivaram Lingamneni
26686d7e86
refactor monitor and /oper implementations
6 years ago
Shivaram Lingamneni
23a66fa502
fix various data races, including 2 introduced by #139
6 years ago
Shivaram Lingamneni
e66735619e
tweak some defaults
* Lower ident timeout to 1.5 seconds, as discussed in #oragono
* Enforce connection limits at the granularity of ipv4 /32's and ipv6 /64's
* Raise the limit on number of new connections to 64 every 10 minutes
(for the benefit of people behind large IPv4 NATs)
6 years ago
Daniel Oaks
b8d47c3e4f
channel: Server opers shouldn't override nooutside, reggedonly and moderated modes. if they want to do that sort of thing, they have SAMODE and all to be explicit about it
6 years ago
Daniel Oaks
e3a0387cf5
channel: Fix +m (moderated) and +R (registeredonly) channel modes, add note about opers overriding +m/+R
6 years ago
Daniel Oaks
b850a6c1d9
caps: Actually remove MessageIDs (accidentally left it here with the merge)
6 years ago
Daniel Oaks
b4fcb45af0
Add license stuff to the top of caps/ and sno/ files I guess
6 years ago
Daniel Oaks
275449e6cc
caps: Move most capability-handling types into the caps package
6 years ago
Shivaram Lingamneni
ae441d22d3
refactor [dk]linemanagers
* Synchronize map accesses
* Be more aggressive about cleaning up expired lines
* CIDR dlines did not work (nil dereference)
6 years ago
Daniel Oaks
cea6565b80
client: HasCapabs -> HasRoleCapabs to make it more clear exactly what this means
6 years ago
Daniel Oaks
810908db7f
Add comments
6 years ago
Daniel Oaks
9bfdc4fdfb
Move caps to their own package to prevent conflicts
6 years ago
Daniel Oaks
830484feb6
AWAY: Send correct mode string (thanks for pointing out this silly bug @jwheare!)
6 years ago
Daniel Oaks
c39206ad13
Don't create new caps out of nowhere, dummy
6 years ago
Daniel Oaks
ffe7375a68
Fix proxied DLINE/throttle/etc error messages
6 years ago
Shivaram Lingamneni
a9e4ed237e
deduplicate d-line and throttle code
6 years ago
Daniel Oaks
8b1f722655
server: Fix the PROXY command
6 years ago
Daniel Oaks
8ea5632269
Setup v0.9.2-unreleased devel ver
6 years ago
Shivaram Lingamneni
b7b24c34b4
rehash cannot modify the server name
6 years ago
Shivaram Lingamneni
3b0f1ff1cc
delete websocket support as per discussion on #139
6 years ago
Shivaram Lingamneni
e8b1870067
refactor the rehash implementation
6 years ago
Daniel Oaks
eae04e8c51
Release v0.9.1
6 years ago
Daniel Oaks
cd8b4877b6
accounts: Check for account logins correctly, fixes registration. Also fix a typo, thanks squigz!
6 years ago
Shivaram Lingamneni
1612c141d5
send the actual quit message to friends
6 years ago
Daniel Oaks
a78a8f1130
client: Only add friends if they actually have the caps we request. Friends() is entirely broken because of this
6 years ago
Daniel Oaks
79de443496
channel: Don't send TOPIC on entirely new channel
6 years ago
Daniel Oaks
2759d8f5d3
modes: Allow 'MODE b' (used by irssi for channel sync) (thanks @dx!)
6 years ago
Daniel Oaks
3b0d9c4db9
Send nick parameter correctly on ERR_NOSUCHNICK numerics
6 years ago
Daniel Oaks
1ccdd67a45
Setup v0.9.1-unreleased devel ver
6 years ago
Daniel Oaks
02cd620bd4
Release v0.9.0
6 years ago
Daniel Oaks
e95c75f87d
monitor: Fix a crash around the MONITOR command
6 years ago
Daniel Oaks
acec0e1690
PROXY: Check DLINEs and connection limits/throttle on new proxied connections
6 years ago
Daniel Oaks
38498b752b
PROXY: Make sure given IPs are valid and pass them through appropriately
6 years ago
Daniel Oaks
7d140c9e43
PROXY: Update some comments, disallow from registered clients
6 years ago
Shivaram Lingamneni
99f02ede20
restore PROXY protocol support
support for PROXY was removed in 43e28e2fef . After discussion,
it's worth keeping around in case of client compatibility issues,
and until /rehash support is more mature.
6 years ago
Daniel Oaks
8cd016e4c0
server: Fix comments
6 years ago
Shivaram Lingamneni
0f0f2d1314
refactor listener update/destroy code
Don't close and reopen listeners
6 years ago
Shivaram Lingamneni
d5528f6e56
execute rehash() in its own goroutine
This prevents a deadlock:
1. rehash() is executing on the main goroutine
2. it's trying to stop a listener goroutine
3. the listener goroutine needs to hand off a new connection to newConns
4. but the main goroutine is blocked by rehash() so it can't receive it
6 years ago
Shivaram Lingamneni
b1376d5f71
Fix a concurrency error with Server.listeners
See #134 ; there was a `fatal error: concurrent map read and map write`
due to unsynchronized accesses to `Server.listeners`. Now, `listeners`
is only accessed by `NewServer` and `rehash`, so it doesn't need
synchronization.
6 years ago
Daniel Oaks
c48d869f4d
Allow multiple account registrations for testing
6 years ago
Shivaram Lingamneni
6063d30bc5
add a test for default channel mode parsing
6 years ago
Shivaram Lingamneni
333afe1062
make default channel modes configurable
6 years ago
Daniel Oaks
d052ca8a8d
accounts: Disable reg if client's already registered an account
6 years ago
Daniel Oaks
ac91a3e484
strings: Follow latest advice on PRECIS regarding string stabilizing
6 years ago
Daniel Oaks
f9ef97b204
modes: Add experimental, untested +R user mode to block messages from unregistered users
6 years ago