summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-11 17:39:06 +0000
committerfrostycoolslug <frostycoolslug@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-11 17:39:06 +0000
commit62b5ccc3affacbbd3578ed9a1d81c7c7a9c8760b (patch)
treee090d45e12422a8fa695afc88f97cd6f98695105
parent100b77c1864fc529df04b95a2704538bd4029b10 (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
-rw-r--r--src/modules/m_showwhois.cpp3
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);
}