mirror of
https://github.com/anope/anope.git
synced 2026-07-09 00:03:14 +02:00
Fix locking modes that take parameters only when adding.
This commit is contained in:
@@ -322,7 +322,7 @@ class CommandCSMode final
|
||||
return true;
|
||||
|
||||
case MODE_PARAM:
|
||||
return !anope_dynamic_static_cast<ChannelModeParam *>(cm)->minus_no_arg;
|
||||
return adding || !anope_dynamic_static_cast<ChannelModeParam *>(cm)->minus_no_arg;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user