summaryrefslogtreecommitdiff
path: root/src/cmd_lusers.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 16:14:44 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 16:14:44 +0000
commitcfb2c2fff47d99f43434de7db339c2f2237c6bad (patch)
treebadd13cd7ee9a45dbbc683d64e44a01e0677ce58 /src/cmd_lusers.cpp
parent7775a195d9c417e52eaaf912ec51d62bf0fd9a54 (diff)
CamelCaseRocksSoMuchICamelCasedAllTheMethodsOfClassInspIRCdSoThatItAllLooksNeat.
NowSomebodyHasToSpendHoursDocumentingAllOfThisIWonderWhoThatWillEndUpBeing... git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4889 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_lusers.cpp')
-rw-r--r--src/cmd_lusers.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/cmd_lusers.cpp b/src/cmd_lusers.cpp
index 8ab9392bc..39f093072 100644
--- a/src/cmd_lusers.cpp
+++ b/src/cmd_lusers.cpp
@@ -26,14 +26,14 @@ void cmd_lusers::Handle (const char** parameters, int pcnt, userrec *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->usercnt()-ServerInstance->usercount_invisible(),ServerInstance->usercount_invisible());
- if (ServerInstance->usercount_opers())
- user->WriteServ("252 %s %d :operator(s) online",user->nick,ServerInstance->usercount_opers());
- if (ServerInstance->usercount_unknown())
- user->WriteServ("253 %s %d :unknown connections",user->nick,ServerInstance->usercount_unknown());
- if (ServerInstance->chancount())
- user->WriteServ("254 %s %d :channels formed",user->nick,ServerInstance->chancount());
- if (ServerInstance->local_count())
- user->WriteServ("254 %s :I have %d clients and 0 servers",user->nick,ServerInstance->local_count());
+ user->WriteServ("251 %s :There are %d users and %d invisible on 1 server",user->nick,ServerInstance->UserCount()-ServerInstance->InvisibleUserCount(),ServerInstance->InvisibleUserCount());
+ if (ServerInstance->OperCount())
+ user->WriteServ("252 %s %d :operator(s) online",user->nick,ServerInstance->OperCount());
+ if (ServerInstance->UnregisteredUserCount())
+ user->WriteServ("253 %s %d :unknown connections",user->nick,ServerInstance->UnregisteredUserCount());
+ if (ServerInstance->ChannelCount())
+ user->WriteServ("254 %s %d :channels formed",user->nick,ServerInstance->ChannelCount());
+ if (ServerInstance->LocalUserCount())
+ user->WriteServ("254 %s :I have %d clients and 0 servers",user->nick,ServerInstance->LocalUserCount());
}