diff options
| author | 2021-05-08 16:31:38 +0100 | |
|---|---|---|
| committer | 2021-05-08 17:16:11 +0100 | |
| commit | 6a2f6331eddd5a89ff02643f72e93151dab15547 (patch) | |
| tree | 0c8a672e4a461fe0d743a6d181b01c961d992df6 /include | |
| parent | Constify ChannelManager::Find. (diff) | |
Add ChannelManager::IsPrefix.
Diffstat (limited to 'include')
| -rw-r--r-- | include/channelmanager.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/channelmanager.h b/include/channelmanager.h index 172028be6..78c9fa46b 100644 --- a/include/channelmanager.h +++ b/include/channelmanager.h @@ -48,4 +48,10 @@ class CoreExport ChannelManager /** Retrieves a map containing all channels keyed by the channel name. */ ChannelMap& GetChans() { return channels; } const ChannelMap& GetChans() const { return channels; } + + /** Determines whether the specified character is a valid channel prefix. + * @param prefix The channel name prefix to validate. + * @return True if the character is a channel prefix; otherwise, false. + */ + bool IsPrefix(unsigned char prefix) const; }; |
