diff options
author | frostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-11 17:39:06 +0000 |
---|---|---|
committer | frostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-11 17:39:06 +0000 |
commit | 62b5ccc3affacbbd3578ed9a1d81c7c7a9c8760b (patch) | |
tree | e090d45e12422a8fa695afc88f97cd6f98695105 /src/modules/m_showwhois.cpp | |
parent | 100b77c1864fc529df04b95a2704538bd4029b10 (diff) |
Fixed massivly huge bug in showwhois, MASSIVE undertaking right there :D
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2772 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_showwhois.cpp')
-rw-r--r-- | src/modules/m_showwhois.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp index 6086a0828..dddd29406 100644 --- a/src/modules/m_showwhois.cpp +++ b/src/modules/m_showwhois.cpp @@ -1,6 +1,7 @@ using namespace std; // showwhois module by typobox43 +// Modified by Craig #include "users.h" #include "channels.h" @@ -47,7 +48,7 @@ class ModuleShowwhois : public Module virtual void OnWhois(userrec* source, userrec* dest) { - if(strchr(dest->modes,'W')) + if((strchr(dest->modes,'W')) && (source != dest)) { WriteServ(dest->fd,"NOTICE %s :*** %s (%s@%s) did a /whois on you.",dest->nick,source->nick,source->ident,source->host); } |