Shivaram Lingamneni
4bffdba610
SAMODE +f shouldn't require channel privileges
Reported by @Mikaela ; normally this requires +o or higher on the
channel that is the target of the forward, but SAMODE should bypass
this check.
il y a 2 ans
Shivaram Lingamneni
abfb8442ab
fix handling of +k with an empty key parameter
This should be disallowed; `MODE #keytest +k :` should just be an error.
il y a 3 ans
Valentin Lorentz
e894c44960
Add missing channel parameter to ERR_INVALIDMODEPARAM.
il y a 3 ans
Kyle Fuller
9adc77498e
Include nick in ERR_LISTMODEALREADYSET and ERR_LISTMODENOTSET
il y a 3 ans
Shivaram Lingamneni
23c7218bf1
first pass at renaming Oragono to Ergo
il y a 3 ans
Shivaram Lingamneni
eb2dfa78c9
fix #1617
Prevent LUSERS stats from getting out of sync when modes are
modified on offline clients.
il y a 3 ans
Shivaram Lingamneni
fed002d11a
fix #1618
Allow snomasks to be added via oper config block, even if the oper
doesn't have `ban` or `snomasks` and therefore can't add snomasks
on their own.
il y a 3 ans
Shivaram Lingamneni
16f0170512
fix #1563
ERR_INVALIDMODEPARAM should take both the mode and the invalid parameter
as arguments.
il y a 3 ans
Shivaram Lingamneni
91cfdb963d
fix #1074
Make snomask add/remove behavior match other ircds
il y a 3 ans
Shivaram Lingamneni
42316bc04f
fix #1176
Transition most "is an operator" checks to require a specific operator
capability
il y a 3 ans
Shivaram Lingamneni
ba72d3acfc
implement a channel forwarding mode
Fixes #1260
il y a 3 ans
Shivaram Lingamneni
c279b2d14c
DRY mode apply code
ParseUserModeChanges and ParseChannelModeChanges already validate
that the modes are modifiable, so there's no need to repeat it here.
il y a 3 ans
Alex Jaspersen
504659abb5
Add +M (only registered/voice can speak) chanmode.
Add chanmode preventing speech to error message.
Fixes #1182 .
il y a 3 ans
Conrad Lukawski
fca2900918
Add +T no-CTCP usermode
il y a 4 ans
Alex Jaspersen
0241e0c31d
Apply default user modes just before registration.
Previously, we were applying defaults before the user had completed
registration. This meant that the number of invisible users was
incremented when the user connected, and then the total was incremented
when registration was completed.
Now both counters are updated at the same time. If a user disconnects
prior to registration, +i has not yet been applied so it would not be
decremented.
il y a 4 ans
Shivaram Lingamneni
4d50607c79
add persistence for user modes
il y a 4 ans
Shivaram Lingamneni
2f9234318c
fix #1021
il y a 4 ans
Alex Jaspersen
d5cec62df3
Call ApplyUserModeChanges for default user modes.
This ensures that counts like the number of invisible users are updated
correctly.
il y a 4 ans
Alex Jaspersen
b3a7e5c996
Set default user modes when always-on clients reconnect.
Add default-user-modes configuration to conventional.yaml.
Fix comment on DefaultUserModes.
il y a 4 ans
Alex Jaspersen
df9bf15f00
Add support for setting user modes by default.
il y a 4 ans
Shivaram Lingamneni
f5fe580d22
partial implementation of #729
This propagates CS AMODE changes to the actual modes, but not the other
way around.
Also fixes #909 .
il y a 4 ans
Shivaram Lingamneni
d98e3581b3
disallow /SAMODE nick +o
il y a 4 ans
Shivaram Lingamneni
438fffab99
fix #725
il y a 4 ans
Shivaram Lingamneni
166dc60729
fix #753
Also add +C no-ctcp mode, since it's not conflicted
il y a 4 ans
Shivaram Lingamneni
bd822853bc
fix some translation warnings
il y a 4 ans
Shivaram Lingamneni
07865b8f63
chanserv enhancements and miscellaneous fixes
* Fix #684
* Fix #683
* Add `CHANSERV CLEAR`
* Allow mode changes from channel founders even when they aren't joined
* Operators with the chanreg capability are exempt from max-channels-per-account
* Small fixes and cleanup
il y a 4 ans
Shivaram Lingamneni
82c5041225
fix #649
il y a 4 ans
Shivaram Lingamneni
332f0d8d91
fix #644
il y a 4 ans
Shivaram Lingamneni
0835ad6af5
fix #514
Also ensure that people can remove their own persistent modes via CS AMODE
il y a 5 ans
Shivaram Lingamneni
4b88a60ba6
clean up some old getters
il y a 5 ans
Shivaram Lingamneni
30f6e11698
fix #400
Also fix some issues with STATUSMSG
il y a 5 ans
Shivaram Lingamneni
a729772f0c
fix a deadlock in CS AMODE
il y a 5 ans
Shivaram Lingamneni
18a8b075ea
fix #425 and #395
il y a 5 ans
Shivaram Lingamneni
63029e2ff5
refactor channel registration
il y a 5 ans
Shivaram Lingamneni
e2e07c0eee
fix #374
il y a 5 ans
Shivaram Lingamneni
2c7c8fbaf9
history replay enhancements
il y a 5 ans
Shivaram Lingamneni
ac08ce0f20
move ChannelOperator check into hasPrivs helper
il y a 6 ans
Shivaram Lingamneni
1383190249
refactor rehash to rely more on server.config
il y a 6 ans
Shivaram Lingamneni
02a4aaf583
some tweaks to account/channel unregistration
il y a 6 ans
Shivaram Lingamneni
d3815fbe61
review fixes and updates
il y a 6 ans
Shivaram Lingamneni
abbbd2c899
review fix
il y a 6 ans
Shivaram Lingamneni
fad2475c3f
modes refactor, #255
il y a 6 ans
moocow
744ad2ce0b
Stats for LUSERS logic now seperated, fixed params in LUSERS
il y a 6 ans
Daniel Oaks
5811226760
Only allow valid snomasks to be set
il y a 6 ans
Daniel Oaks
e0fa97d344
Get labeled-reply working just fine
il y a 6 ans
Daniel Oaks
3634d0601e
Split modes into a subpackage (this is painful, but will force us to simplify and improve the API for interacting with modes)
il y a 6 ans
Daniel Oaks
47d2ce351c
Centralise all command handlers in handlers.go
il y a 6 ans
Daniel Oaks
8bc2c0ee67
temp *badbadbad*
il y a 6 ans
Daniel Oaks
16a55cbba8
Add labeled-responses for MODE
il y a 6 ans
Daniel Oaks
275227a461
Make like every client-facing string translatable
il y a 6 ans