diff options
| author | 2020-06-21 04:25:45 +0100 | |
|---|---|---|
| committer | 2021-05-08 15:31:50 +0100 | |
| commit | 0c750c060839f9018ca129bd7456184792ea0dc0 (patch) | |
| tree | 43aa8d0a593afa292e2922d2481b2349e0dc8dfd /src/helperfuncs.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
| download | inspircd++-0c750c060839f9018ca129bd7456184792ea0dc0.tar.gz inspircd++-0c750c060839f9018ca129bd7456184792ea0dc0.tar.bz2 inspircd++-0c750c060839f9018ca129bd7456184792ea0dc0.zip | |
Move channel logic from InspIRCd to the new ChannelManager class.
Diffstat (limited to 'src/helperfuncs.cpp')
| -rw-r--r-- | src/helperfuncs.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 275065997..709dcca17 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -36,19 +36,6 @@ #include "inspircd.h" #include "xline.h" -/* find a channel record by channel name and return a pointer to it */ - -Channel* InspIRCd::FindChan(const std::string &chan) -{ - chan_hash::iterator iter = chanlist.find(chan); - - if (iter == chanlist.end()) - /* Couldn't find it */ - return NULL; - - return iter->second; -} - bool InspIRCd::IsValidMask(const std::string &mask) { const char* dest = mask.c_str(); @@ -171,29 +158,6 @@ void InspIRCd::ProcessColors(file_cache& input) } } -/* true for valid channel name, false else */ -bool InspIRCd::DefaultIsChannel(const std::string& chname) -{ - if (chname.empty() || chname.length() > ServerInstance->Config->Limits.MaxChannel) - return false; - - if (chname[0] != '#') - return false; - - for (const auto& chr : insp::iterator_range(chname.begin() + 1, chname.end())) - { - switch (chr) - { - case ' ': - case ',': - case 7: - return false; - } - } - - return true; -} - /* true for valid nickname, false else */ bool InspIRCd::DefaultIsNick(const std::string& n) { |
