X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_showwhois.cpp;h=8532b14eb62d2bf7a7acafe32d0fcf9da9bea0a2;hb=43e31bba5429849fdebeddc65f7e6f267211181f;hp=3cb85f3fb1b18d502ee393cddbc1c01d9694351f;hpb=b9e11915a976daaf790ebc763aff56e19fd49e0f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp index 3cb85f3fb..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 + "@" + - (dest->HasPrivPermission("users/auspex") ? src->host : src->dhost) + + src->GetHost(dest->HasPrivPermission("users/auspex")) + ") did a /whois on you"); } - CmdResult Handle(const std::vector ¶meters, User *user) + 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);