]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_denychans.cpp
AMD64 warning 'fix' which tested fine when I added it seems to now...stop things...
[user/henk/code/inspircd.git] / src / modules / m_denychans.cpp
index 4ea2e3d85120b44ddf896b865ce6cad56fbc5036..c838a495d9eb4ce9dc82e0610c9a4c29e22705f3 100644 (file)
@@ -36,7 +36,7 @@ class ModuleDenyChannels : public Module
                Conf = new ConfigReader;
        }
        
-       virtual void OnRehash(std::string param)
+       virtual void OnRehash(const std::string &param)
        {
                delete Conf;
                Conf = new ConfigReader;
@@ -65,7 +65,7 @@ class ModuleDenyChannels : public Module
                        irc::string thischan = cname;
                        if (thischan == cn)
                        {
-                               if ((Conf->ReadFlag("badchan","allowopers",j)) && (strchr(user->modes,'o')))
+                               if ((Conf->ReadFlag("badchan","allowopers",j)) && *user->oper)
                                {
                                        return 0;
                                }