diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-17 16:00:02 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-01-17 16:00:02 +0000 |
commit | 92974819e3bf1c3a97b83f6f4ccc612283120794 (patch) | |
tree | 2b676903e06528be064f2e0ca36833be0db4e5c8 /src/modules/m_showwhois.cpp | |
parent | 88b9ecb6b34d268f0761e6e961408871b6e91376 (diff) |
Change more modules to VF_OPTCOMMON and assert identical charsets in m_nationalchars
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12277 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_showwhois.cpp')
-rw-r--r-- | src/modules/m_showwhois.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp index 9cfa76008..2b27de388 100644 --- a/src/modules/m_showwhois.cpp +++ b/src/modules/m_showwhois.cpp @@ -65,9 +65,10 @@ class WhoisNoticeCmd : public Command CmdResult Handle(const std::vector<std::string> ¶meters, User *user) { User* dest = ServerInstance->FindNick(parameters[0]); + User* source = ServerInstance->FindNick(parameters[1]); - if (IS_LOCAL(dest)) - HandleFast(dest, user); + if (IS_LOCAL(dest) && source) + HandleFast(dest, source); return CMD_SUCCESS; } @@ -100,12 +101,12 @@ class ModuleShowwhois : public Module delete sw; } - virtual Version GetVersion() + Version GetVersion() { - return Version("Allows opers to set +W to see when a user uses WHOIS on them",VF_COMMON|VF_VENDOR); + return Version("Allows opers to set +W to see when a user uses WHOIS on them",VF_OPTCOMMON|VF_VENDOR); } - virtual void OnWhois(User* source, User* dest) + void OnWhois(User* source, User* dest) { if (!dest->IsModeSet('W') || source == dest) return; @@ -122,6 +123,7 @@ class ModuleShowwhois : public Module std::vector<std::string> params; params.push_back(dest->server); params.push_back("WHOISNOTICE"); + params.push_back(source->uuid); params.push_back(dest->uuid); ServerInstance->PI->SendEncapsulatedData(params); } |