mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
Remove a wrapper, it's easy to read as is :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8300 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
5d5285f24b
commit
8691870bf7
@ -681,11 +681,6 @@ class CoreExport InspIRCd : public classbase
|
||||
*/
|
||||
int RegisteredUserCount();
|
||||
|
||||
/** Return a count of invisible (umode +i) users only
|
||||
* @return The number of invisible users
|
||||
*/
|
||||
int InvisibleUserCount();
|
||||
|
||||
/** Return a count of opered (umode +o) users only
|
||||
* @return The number of opers
|
||||
*/
|
||||
|
@ -25,7 +25,7 @@ CmdResult CommandLusers::Handle (const char** parameters, int pcnt, User *user)
|
||||
{
|
||||
// this lusers command shows one server at all times because
|
||||
// a protocol module must override it to show those stats.
|
||||
user->WriteServ("251 %s :There are %d users and %d invisible on 1 server",user->nick,ServerInstance->UserCount()-ServerInstance->InvisibleUserCount(),ServerInstance->InvisibleUserCount());
|
||||
user->WriteServ("251 %s :There are %d users and %d invisible on 1 server",user->nick,ServerInstance->UserCount()-ServerInstance->ModeCount('i'),ServerInstance->ModeCount('i'));
|
||||
if (ServerInstance->OperCount())
|
||||
user->WriteServ("252 %s %d :operator(s) online",user->nick,ServerInstance->OperCount());
|
||||
if (ServerInstance->UnregisteredUserCount())
|
||||
|
@ -360,12 +360,6 @@ int InspIRCd::ModeCount(const char mode)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* wrapper for readability */
|
||||
int InspIRCd::InvisibleUserCount()
|
||||
{
|
||||
return ModeCount('i');
|
||||
}
|
||||
|
||||
/* return how many users are opered */
|
||||
int InspIRCd::OperCount()
|
||||
{
|
||||
|
@ -134,8 +134,8 @@ void ModuleSpanningTree::HandleLusers(const char** parameters, int pcnt, User* u
|
||||
}
|
||||
}
|
||||
user->WriteServ("251 %s :There are %d users and %d invisible on %d servers",user->nick,
|
||||
n_users-ServerInstance->InvisibleUserCount(),
|
||||
ServerInstance->InvisibleUserCount(),
|
||||
n_users-ServerInstance->ModeCount('i'),
|
||||
ServerInstance->ModeCount('i'),
|
||||
ulined_count ? this->CountServs() - ulined_count : this->CountServs());
|
||||
|
||||
if (ServerInstance->OperCount())
|
||||
|
Loading…
x
Reference in New Issue
Block a user