]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_uninvite.cpp
Improved strhashcomp with no allocations
[user/henk/code/inspircd.git] / src / modules / m_uninvite.cpp
index 8e92cb0c62b83b97b623d422a1f007793ceb0642..dbd3af52f7e27624160d230ab99c0b618c3e9c3f 100644 (file)
@@ -25,7 +25,7 @@ using namespace std;
 #include "helperfuncs.h"
 #include "message.h"
 
-Server *Srv;
+static Server *Srv;
         
 class cmd_uninvite : public command_t
 {
@@ -70,7 +70,7 @@ class cmd_uninvite : public command_t
                         WriteServ(user->fd,"491 %s %s %s :Is not invited to channel %s",user->nick,u->nick,c->name,c->name);
                         return;
                 }
-                if (!has_channel(user,c))
+                if (!c->HasUser(user))
                 {
                         WriteServ(user->fd,"492 %s %s :You're not on that channel!",user->nick, c->name);
                         return;