]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
More compile fixes
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 25 May 2008 17:38:17 +0000 (17:38 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 25 May 2008 17:38:17 +0000 (17:38 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9805 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_chanprotect.cpp
src/modules/m_sajoin.cpp

index a79eda993eb6b50696676f4f670d476c870cbc38..94fa164b35dab8a540d2333f240b22a5f99602bf 100644 (file)
@@ -68,7 +68,7 @@ class FounderProtectBase
                std::string item = extend + std::string(channel->name);
                std::vector<std::string> mode_junk;
                mode_junk.push_back(channel->name);
-               irc::modestacker modestack(ServerInstance, false);
+               irc::modestacker modestack(MyInstance, false);
                std::deque<std::string> stackresult;                            
 
                for (CUList::iterator i = cl->begin(); i != cl->end(); i++)
index 5be61fbf60cf5418787860f320c8e04360ea1b4a..c320287e1462003de4d0261e410febc4d9b65d28 100644 (file)
@@ -37,7 +37,7 @@ class CommandSajoin : public Command
                                user->WriteNumeric(990, "%s :Cannot use an SA command on a u-lined client",user->nick.c_str());
                                return CMD_FAILURE;
                        }
-                       if (IS_LOCAL(source) && !ServerInstance->IsChannel(parameters[1].c_str(), ServerInstance->Config->Limits.ChanMax))
+                       if (IS_LOCAL(user) && !ServerInstance->IsChannel(parameters[1].c_str(), ServerInstance->Config->Limits.ChanMax))
                        {
                                /* we didn't need to check this for each character ;) */
                                user->WriteServ("NOTICE "+std::string(user->nick)+" :*** Invalid characters in channel name or name too long");