summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-17 12:17:09 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-17 12:17:09 +0000
commit1e5728d84c1b4b0d86bf745ce253aa458575df20 (patch)
treeb05d280fa7dec2fe9c56cba0c8e0143984d947cd /src/helperfuncs.cpp
parentbf77b312c8e15da249991cff43432c21b44807d7 (diff)
Move a number of methods from class InspIRCd to class UserManager
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8726 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 40b2d7d90..048de75ca 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -339,18 +339,6 @@ void InspIRCd::SendError(const std::string &s)
}
}
-/* 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)
{
@@ -362,31 +350,12 @@ int InspIRCd::ModeCount(const char mode)
return 0;
}
-/* 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());
-}
-
bool InspIRCd::IsValidMask(const std::string &mask)
{
char* dest = (char*)mask.c_str();