]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_showwhois.cpp
Fix all typos (not as fun as 'kill all humans' but meh, beggers cant be choosers)
[user/henk/code/inspircd.git] / src / modules / m_showwhois.cpp
index 6086a08287071db2bb8c3c49756698839a144001..519b1335285692786ef32acd524de5db5290a6ba 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 ((dest->modes['W'-65]) && (source != dest))
                        {
                                WriteServ(dest->fd,"NOTICE %s :*** %s (%s@%s) did a /whois on you.",dest->nick,source->nick,source->ident,source->host);
                        }