-/* 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();
-}
-
-/* return how many users have a given mode e.g. 'a' */
-int InspIRCd::ModeCount(const char mode)
-{
- ModeHandler* mh = this->Modes->FindMode(mode, MODETYPE_USER);
-
- if (mh)
- return mh->GetCount();
- else
- return 0;
-}
-
-/* wrapper for readability */
-int InspIRCd::InvisibleUserCount()
-{
- return ModeCount('i');
-}
-
-/* return how many users are opered */
-int InspIRCd::OperCount()
-{
- return this->all_opers.size();
-}
-
-/* return how many users are unregistered */
-int InspIRCd::UnregisteredUserCount()
-{
- return this->unregistered_count;
-}
-
-/* return channel count */
-long InspIRCd::ChannelCount()
-{
- return chanlist->size();
-}
-
-/* return how many local registered users there are */
-long InspIRCd::LocalUserCount()
-{
- /* Doesnt count unregistered clients */
- return (local_users.size() - this->UnregisteredUserCount());
-}
-