diff options
| author | 2022-04-11 23:49:10 +0100 | |
|---|---|---|
| committer | 2022-04-11 23:49:22 +0100 | |
| commit | 6830169ef13d4599916496b149c72577e6fb297d (patch) | |
| tree | 1e8a2de9c5e8f26781e8d35075aeac55d47272e4 /include | |
| parent | Add a method to ConfigTag to help with retrieving a single character. (diff) | |
Add a method for finding the next prefix mode above a rank.
Diffstat (limited to 'include')
| -rw-r--r-- | include/mode.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mode.h b/include/mode.h index da9d197ca..d406859c6 100644 --- a/include/mode.h +++ b/include/mode.h @@ -789,6 +789,12 @@ class CoreExport ModeParser : public fakederef<ModeParser> */ PrefixMode* FindPrefixMode(unsigned char modeletter); + /** Find the mode handler for the prefix mode nearest the given rank. + * @param rank The rank to search for prefix modes near. + * @return A pointer to the PrefixMode or NULL if a prefix mode wasn't found. + */ + PrefixMode* FindNearestPrefixMode(unsigned int rank); + /** Find a mode handler by its prefix. * If there is no mode handler with the given prefix, NULL will be returned. * @param pfxletter The prefix to find, e.g. '@' |
