]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sethost.cpp
FindNick, FindChan, ChanModes, UserList, CountInvisible, PurgeEmptyChannels, GetClass...
[user/henk/code/inspircd.git] / src / modules / m_sethost.cpp
index 631bd13a1fc1c64ac22987809d71134f73fa2c5e..697ba1dfde524678f39e0b857d103a13560e1c91 100644 (file)
@@ -22,10 +22,12 @@ using namespace std;
 #include "channels.h"
 #include "modules.h"
 #include "helperfuncs.h"
+#include "inspircd.h"
 
 /* $ModDesc: Provides support for the SETHOST command */
 
 static Server *Srv;
+extern InspIRCd* ServerInstance;
 
 class cmd_sethost : public command_t
 {
@@ -55,7 +57,7 @@ class cmd_sethost : public command_t
                        }
                }
                if (user->ChangeDisplayedHost(parameters[0]))
-                       Srv->SendOpers(std::string(user->nick)+" used SETHOST to change their displayed host to "+std::string(parameters[0]));
+                       ServerInstance->WriteOpers(std::string(user->nick)+" used SETHOST to change their displayed host to "+std::string(parameters[0]));
        }
 };