]> 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 dddd29406702a9eb20d2ff296ff99b1400b9b76a..519b1335285692786ef32acd524de5db5290a6ba 100644 (file)
@@ -48,7 +48,7 @@ class ModuleShowwhois : public Module
 
                virtual void OnWhois(userrec* source, userrec* dest)
                {
-                       if((strchr(dest->modes,'W')) && (source != dest))
+                       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);
                        }