- 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->GetHandler(mode, MODETYPE_USER);
-
- if (mh)
- return mh->GetCount();
- else
- return 0;
-}
-
-int InspIRCd::InvisibleUserCount()
-{
- return ModeCount('i');
-}
-
-int InspIRCd::OperCount()
-{
- return ModeCount('o');
-}
-
-int InspIRCd::UnregisteredUserCount()
-{
- int c = 0;
-
- for (std::vector<userrec*>::const_iterator i = local_users.begin(); i != local_users.end(); i++)
- {
- userrec* t = (userrec*)(*i);
- if (t->registered != REG_ALL)
- c++;
- }
-
- return c;
-}
-
-long InspIRCd::ChannelCount()
-{
- return chanlist->size();
-}
-
-long InspIRCd::LocalUserCount()
-{
- int c = 0;
-
- for (std::vector<userrec*>::const_iterator i = local_users.begin(); i != local_users.end(); i++)
- {
- userrec* t = (userrec*)(*i);
- if (t->registered == REG_ALL)
- c++;
- }
-
- return c;
-}
-
-bool InspIRCd::IsChannel(const char *chname)
-{
- char *c;