summaryrefslogtreecommitdiff
path: root/src/commands/cmd_whowas.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-08 23:29:21 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-08 23:29:21 +0000
commit7e843c22e16c81054bad18073d24fe1a07026431 (patch)
tree44ca0213c7d7a80270b993fec1fbed275ec56424 /src/commands/cmd_whowas.cpp
parentc440038736f749a56dbac1badee5b2f099286117 (diff)
Update Event and Request APIs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11808 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands/cmd_whowas.cpp')
-rw-r--r--src/commands/cmd_whowas.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/commands/cmd_whowas.cpp b/src/commands/cmd_whowas.cpp
index 837e5d016..a11b02b2d 100644
--- a/src/commands/cmd_whowas.cpp
+++ b/src/commands/cmd_whowas.cpp
@@ -314,16 +314,16 @@ class ModuleWhoWas : public Module
ServerInstance->AddCommand(&cmd);
}
- const char* OnRequest(Request* request)
+ void OnRequest(Request& request)
{
- WhowasRequest* req = static_cast<WhowasRequest*>(request);
- switch (req->type)
+ WhowasRequest& req = static_cast<WhowasRequest&>(request);
+ switch (req.type)
{
case WhowasRequest::WHOWAS_ADD:
- cmd.AddToWhoWas(req->user);
+ cmd.AddToWhoWas(req.user);
break;
case WhowasRequest::WHOWAS_STATS:
- req->value = cmd.GetStats();
+ req.value = cmd.GetStats();
break;
case WhowasRequest::WHOWAS_PRUNE:
cmd.PruneWhoWas(ServerInstance->Time());
@@ -332,7 +332,6 @@ class ModuleWhoWas : public Module
cmd.MaintainWhoWas(ServerInstance->Time());
break;
}
- return NULL;
}
Version GetVersion()