]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_showwhois.cpp
Remove an extern, partly because it's unused, partly because it then gets shadowed...
[user/henk/code/inspircd.git] / src / modules / m_showwhois.cpp
index 6086a08287071db2bb8c3c49756698839a144001..dddd29406702a9eb20d2ff296ff99b1400b9b76a 100644 (file)
@@ -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);
                        }