From: frostycoolslug Date: Wed, 11 Jan 2006 17:39:06 +0000 (+0000) Subject: Fixed massivly huge bug in showwhois, MASSIVE undertaking right there :D X-Git-Tag: v2.0.23~9308 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=62b5ccc3affacbbd3578ed9a1d81c7c7a9c8760b;p=user%2Fhenk%2Fcode%2Finspircd.git 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 --- 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); }