]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_testcommand.cpp
AMD64 warning 'fix' which tested fine when I added it seems to now...stop things...
[user/henk/code/inspircd.git] / src / modules / m_testcommand.cpp
index 205e285cfeda5576955f64c3b9645a9f192c11cd..ceb0651d8b03de572b1570b33a9854658998a7bb 100644 (file)
@@ -23,7 +23,7 @@ using namespace std;
 
 /* $ModDesc: Povides a proof-of-concept test /WOOT command */
 
-Server *Srv;
+static Server *Srv;
         
 class cmd_woot : public command_t
 {
@@ -109,7 +109,7 @@ class ModuleTestCommand : public Module
        virtual void OnUserJoin(userrec* user, chanrec* channel)
        {
                Srv->Log(DEBUG,"OnUserJoin triggered");
-               if (channel->IsCustomModeSet('Z'))
+               if (channel->IsModeSet('Z'))
                {
                        std::string param = channel->GetModeParameter('Z');
                        Srv->Log(DEBUG,"Custom mode is set on this channel! Parameter="+param);