]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/users.cpp
Overloading SetMode seems to cause the compiler to interpret "" as a bool and not...
[user/henk/code/inspircd.git] / src / users.cpp
index c84bc00d9334f12d8f602b07e3fead71a0d48270..15e1ab72b5ebf79e57d0f475863332e90b80a1bf 100644 (file)
@@ -776,7 +776,7 @@ void User::Oper(const std::string &opertype, const std::string &opername)
                this->AllowedUserModes['o' - 'A'] = true; // Call me paranoid if you want.
 
                std::string myclass, mycmd, mypriv;
-               irc::spacesepstream Classes(iter_opertype->second);
+               irc::spacesepstream Classes(iter_opertype->second.c_str());
                while (Classes.GetToken(myclass))
                {
                        operclass_t::iterator iter_operclass = ServerInstance->Config->operclass.find(myclass.c_str());