aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-05-08 16:31:38 +0100
committerGravatar Sadie Powell2021-05-08 17:16:11 +0100
commit6a2f6331eddd5a89ff02643f72e93151dab15547 (patch)
tree0c8a672e4a461fe0d743a6d181b01c961d992df6 /include
parentConstify ChannelManager::Find. (diff)
Add ChannelManager::IsPrefix.
Diffstat (limited to 'include')
-rw-r--r--include/channelmanager.h6
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;
};