diff options
| author | 2023-01-02 22:36:36 +0000 | |
|---|---|---|
| committer | 2023-01-02 22:49:07 +0000 | |
| commit | ef292c8d80b568b3abe76d9a5ecd07a90be33204 (patch) | |
| tree | f8b19dd9dd943c932df7e5e9f63763e752e7326a /src/users.cpp | |
| parent | Fix getting the full snomask and mode lists. (diff) | |
Fix CanUseSnomask checking the wrong snomask index.
We reuse the mode index packing here to avoid duplication.
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index 711216344..869f6b281 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1305,7 +1305,7 @@ bool OperType::CanUseMode(ModeType mt, unsigned char chr) const bool OperType::CanUseSnomask(unsigned char chr) const { if (SnomaskManager::IsSnomask(chr)) - return snomasks[chr - 'A']; + return snomasks[ModeParser::GetModeIndex(chr)]; return false; } |
