From 6a2f6331eddd5a89ff02643f72e93151dab15547 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 8 May 2021 16:31:38 +0100 Subject: Add ChannelManager::IsPrefix. --- include/channelmanager.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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; }; -- cgit v1.3.1-10-gc9f91