-// this function counts all users connected, wether they are registered or NOT.
-int InspIRCd::UserCount()
-{
- return clientlist->size();
-}
-
-// this counts only registered users, so that the percentages in /MAP don't mess up when users are sitting in an unregistered state
-int InspIRCd::RegisteredUserCount()
-{
- return clientlist->size() - this->UnregisteredUserCount();
-}
-
-int InspIRCd::ModeCount(const char mode)
-{
- ModeHandler* mh = this->Modes->FindMode(mode, MODETYPE_USER);
-
- if (mh)
- return mh->GetCount();
- else
- return 0;
-}
-
-int InspIRCd::InvisibleUserCount()
-{
- return ModeCount('i');
-}
-
-int InspIRCd::OperCount()
-{
- return this->all_opers.size();
-}
-
-int InspIRCd::UnregisteredUserCount()
-{
- return this->unregistered_count;
-}
-
-long InspIRCd::ChannelCount()
-{
- return chanlist->size();
-}
-
-long InspIRCd::LocalUserCount()
-{
- /* Doesnt count unregistered clients */
- return (local_users.size() - this->UnregisteredUserCount());
-}
-
-bool InspIRCd::IsChannel(const char *chname)
+/* true for valid channel name, false else */
+bool InspIRCd::DefaultIsChannel(const std::string& chname)