]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_blockamsg.cpp
kick_channel -> chanrec::KickUser(), server_kick_channel -> chanrec::ServerKickUser()
[user/henk/code/inspircd.git] / src / modules / m_blockamsg.cpp
index 24b3deb85ddfc6acd81ffa2cec6ca8be2bf4becd..fdbc33839d112561421c060503cd05da222854b7 100644 (file)
@@ -94,10 +94,10 @@ public:
                DELETE(Conf);
        }
 
-       virtual int OnPreCommand(const std::string &command, char **parameters, int pcnt, userrec *user, bool validated)
+       virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, userrec *user, bool validated)
        {
                // Don't do anything with unregistered users, or remote ones.
-               if(!user || (user->registered != 7) || !IS_LOCAL(user))
+               if(!user || (user->registered != REG_ALL) || !IS_LOCAL(user))
                        return 0;
                        
                // We want case insensitive command comparison.
@@ -117,7 +117,7 @@ public:
                        if(*parameters[0] != '#')
                                targets--;
                        
-                       for(char* c = parameters[0]; *c; c++)
+                       for(const char* c = parameters[0]; *c; c++)
                                if((*c == ',') && *(c+1) && (*(c+1) == '#'))
                                        targets++;