aboutsummaryrefslogtreecommitdiff
path: root/src/channelmanager.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-05-08 15:59:32 +0100
committerGravatar Sadie Powell2021-05-08 15:59:32 +0100
commit5ec128be872384d59cc396e96ab3454c5c2ac4e5 (patch)
tree5f0dd40f3c1212722b2977327e8c4d72f8856283 /src/channelmanager.cpp
parentMove channel logic from InspIRCd to the new ChannelManager class. (diff)
Constify ChannelManager::Find.
Diffstat (limited to 'src/channelmanager.cpp')
-rw-r--r--src/channelmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channelmanager.cpp b/src/channelmanager.cpp
index f8bd9ddb4..4b77cff14 100644
--- a/src/channelmanager.cpp
+++ b/src/channelmanager.cpp
@@ -41,9 +41,9 @@ bool ChannelManager::DefaultIsChannel(const std::string& channel)
return true;
}
-Channel* ChannelManager::Find(const std::string& channel)
+Channel* ChannelManager::Find(const std::string& channel) const
{
- ChannelMap::iterator iter = channels.find(channel);
+ ChannelMap::const_iterator iter = channels.find(channel);
if (iter == channels.end())
return nullptr;