From 7e843c22e16c81054bad18073d24fe1a07026431 Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 8 Oct 2009 23:29:21 +0000 Subject: Update Event and Request APIs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11808 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_whowas.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/commands') 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(request); - switch (req->type) + WhowasRequest& req = static_cast(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() -- cgit v1.2.3