]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_hostchange.cpp
dz is determined to crash your ircd :P
[user/henk/code/inspircd.git] / src / modules / m_hostchange.cpp
index 4a1e501a3e0d984ac8a15c9dcfc7fecdb32f2287..327732651ba6e4342fadf231c666c0e0d6712cab 100644 (file)
@@ -12,9 +12,6 @@
  */
 
 #include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
 #include "wildcard.h"
 
 /* $ModDesc: Provides masking of user hostnames in a different way to m_cloaking */
@@ -57,7 +54,7 @@ class ModuleHostChange : public Module
 
        Priority Prioritize()
        {
-               return (Priority)ServerInstance->PriorityAfter("m_cloaking.so");
+               return (Priority)ServerInstance->Modules->PriorityAfter("m_cloaking.so");
        }
 
        void Implements(char* List)
@@ -101,7 +98,7 @@ class ModuleHostChange : public Module
        {
                for (hostchanges_t::iterator i = hostchanges.begin(); i != hostchanges.end(); i++)
                {
-                       if (((match(user->GetFullRealHost(),i->first.c_str(),true)) || (match(user->MakeHostIP(),i->first.c_str()))))
+                       if (((match(user->MakeHost(),i->first.c_str(),true)) || (match(user->MakeHostIP(),i->first.c_str()))))
                        {
                                Host* h = i->second;