diff options
Diffstat (limited to 'src')
-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); } |