summaryrefslogtreecommitdiff
path: root/src/cmd_whowas.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-21 21:43:48 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-21 21:43:48 +0000
commitb669f920eaa9fb795d0a103d724943898a0df4b2 (patch)
tree41418faca6e863052dbf23f1741606320f7d7095 /src/cmd_whowas.cpp
parent8d1af47d0271e5f08057bec64dee6d18a7b35021 (diff)
Another big commit, just to please all my fans out there.. cmd_* -> Command*. Muahaha.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8290 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_whowas.cpp')
-rw-r--r--src/cmd_whowas.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/cmd_whowas.cpp b/src/cmd_whowas.cpp
index 447beba89..005a23489 100644
--- a/src/cmd_whowas.cpp
+++ b/src/cmd_whowas.cpp
@@ -18,17 +18,17 @@ WhoWasMaintainTimer * timer;
extern "C" DllExport Command* init_command(InspIRCd* Instance)
{
- return new cmd_whowas(Instance);
+ return new CommandWhowas(Instance);
}
-cmd_whowas::cmd_whowas(InspIRCd* Instance) : Command(Instance, "WHOWAS", 0, 1, false, 2)
+CommandWhowas::CommandWhowas(InspIRCd* Instance) : Command(Instance, "WHOWAS", 0, 1, false, 2)
{
syntax = "<nick>{,<nick>}";
timer = new WhoWasMaintainTimer(Instance, 3600);
Instance->Timers->AddTimer(timer);
}
-CmdResult cmd_whowas::Handle (const char** parameters, int pcnt, User* user)
+CmdResult CommandWhowas::Handle (const char** parameters, int pcnt, User* user)
{
/* if whowas disabled in config */
if (ServerInstance->Config->WhoWasGroupSize == 0 || ServerInstance->Config->WhoWasMaxGroups == 0)
@@ -86,7 +86,7 @@ CmdResult cmd_whowas::Handle (const char** parameters, int pcnt, User* user)
return CMD_SUCCESS;
}
-CmdResult cmd_whowas::HandleInternal(const unsigned int id, const std::deque<classbase*> &parameters)
+CmdResult CommandWhowas::HandleInternal(const unsigned int id, const std::deque<classbase*> &parameters)
{
switch (id)
{
@@ -112,7 +112,7 @@ CmdResult cmd_whowas::HandleInternal(const unsigned int id, const std::deque<cla
return CMD_SUCCESS;
}
-void cmd_whowas::GetStats(Extensible* ext)
+void CommandWhowas::GetStats(Extensible* ext)
{
int whowas_size = 0;
int whowas_bytes = 0;
@@ -130,7 +130,7 @@ void cmd_whowas::GetStats(Extensible* ext)
ext->Extend("stats", stats.c_str());
}
-void cmd_whowas::AddToWhoWas(User* user)
+void CommandWhowas::AddToWhoWas(User* user)
{
/* if whowas disabled */
if (ServerInstance->Config->WhoWasGroupSize == 0 || ServerInstance->Config->WhoWasMaxGroups == 0)
@@ -187,7 +187,7 @@ void cmd_whowas::AddToWhoWas(User* user)
}
/* on rehash, refactor maps according to new conf values */
-void cmd_whowas::PruneWhoWas(time_t t)
+void CommandWhowas::PruneWhoWas(time_t t)
{
/* config values */
int groupsize = ServerInstance->Config->WhoWasGroupSize;
@@ -259,7 +259,7 @@ void cmd_whowas::PruneWhoWas(time_t t)
}
/* call maintain once an hour to remove expired nicks */
-void cmd_whowas::MaintainWhoWas(time_t t)
+void CommandWhowas::MaintainWhoWas(time_t t)
{
for (whowas_users::iterator iter = whowas.begin(); iter != whowas.end(); iter++)
{
@@ -276,7 +276,7 @@ void cmd_whowas::MaintainWhoWas(time_t t)
}
}
-cmd_whowas::~cmd_whowas()
+CommandWhowas::~CommandWhowas()
{
if (timer)
{