X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_showwhois.cpp;h=8532b14eb62d2bf7a7acafe32d0fcf9da9bea0a2;hb=43e31bba5429849fdebeddc65f7e6f267211181f;hp=b8091d06025e56679712c1a4d9ca5f1420eb11ef;hpb=565544fac966b14e046bb3042ab485f79bcf7c9e;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp index b8091d060..8532b14eb 100644 --- a/src/modules/m_showwhois.cpp +++ b/src/modules/m_showwhois.cpp @@ -22,6 +22,7 @@ #include "inspircd.h" +#include "modules/whois.h" /** Handle user mode +W */ @@ -50,11 +51,11 @@ class WhoisNoticeCmd : public Command void HandleFast(User* dest, User* src) { dest->WriteNotice("*** " + src->nick + " (" + src->ident + "@" + - src->GetHost(dest->HasPrivPermission("users/auspex")) + + src->GetHost(dest->HasPrivPermission("users/auspex")) + ") did a /whois on you"); } - CmdResult Handle(const std::vector& parameters, User* user) CXX11_OVERRIDE + CmdResult Handle(User* user, const Params& parameters) CXX11_OVERRIDE { User* dest = ServerInstance->FindNick(parameters[0]); if (!dest) @@ -94,7 +95,7 @@ class ModuleShowwhois : public Module, public Whois::EventListener Version GetVersion() CXX11_OVERRIDE { - return Version("Allows opers to set +W to see when a user uses WHOIS on them",VF_OPTCOMMON|VF_VENDOR); + return Version("Provides user mode +W for opers to see when a user uses WHOIS on them", VF_OPTCOMMON|VF_VENDOR); } void OnWhois(Whois::Context& whois) CXX11_OVERRIDE @@ -113,7 +114,7 @@ class ModuleShowwhois : public Module, public Whois::EventListener } else { - std::vector params; + CommandBase::Params params; params.push_back(dest->uuid); params.push_back(source->uuid); ServerInstance->PI->SendEncapsulatedData(dest->server->GetName(), cmd.name, params);