From 62b5ccc3affacbbd3578ed9a1d81c7c7a9c8760b Mon Sep 17 00:00:00 2001 From: frostycoolslug Date: Wed, 11 Jan 2006 17:39:06 +0000 Subject: 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 --- src/modules/m_showwhois.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules/m_showwhois.cpp') 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); } -- cgit v1.2.3