summaryrefslogtreecommitdiff
path: root/src/cmd_whois.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 18:30:50 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-27 18:30:50 +0000
commite04e8aaf9b1a8c75dc70e2137230d11db27137ed (patch)
tree779ef1d7f9a6363881d05caa88be21ab14f560d6 /src/cmd_whois.cpp
parent25f99f5c21bdf4d42ffbf2fc06438270e890d992 (diff)
NOTICE, PRIVMSG, WHOIS; dont allow local users to /msg <uid> etc. This prevents a primative possible type of 'stalking' of users.
We still need to use full FindNick for remote use. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7908 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_whois.cpp')
-rw-r--r--src/cmd_whois.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd_whois.cpp b/src/cmd_whois.cpp
index dadb93902..b6f85e01c 100644
--- a/src/cmd_whois.cpp
+++ b/src/cmd_whois.cpp
@@ -108,7 +108,10 @@ CmdResult cmd_whois::Handle (const char** parameters, int pcnt, userrec *user)
if (pcnt > 1)
userindex = 1;
- dest = ServerInstance->FindNick(parameters[userindex]);
+ if (IS_LOCAL(user))
+ dest = ServerInstance->FindNickOnly(parameters[userindex]);
+ else
+ dest = ServerInstance->FindNick(parameters[userindex]);
if (dest)
{