]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/mode.cpp
Find the right variable so it actually works, too.
[user/henk/code/inspircd.git] / src / mode.cpp
index 748e305a302b2bcdcdaf709c993bff24b3597a78..78993caad8799a76d1d70e968a4e83a7908701ca 100644 (file)
@@ -3,7 +3,7 @@
  *       +------------------------------------+
  *
  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
@@ -12,9 +12,6 @@
  */
 
 /* $Core */
-/* $ExtraDeps: $(RELCPPFILES) */
-/* $ExtraObjects: modes/modeclasses.a */
-/* $ExtraBuild: @${MAKE} -C "modes" DIRNAME="src/modes" CC="$(CC)" $(MAKEARGS) CPPFILES="$(CPPFILES)" */
 
 #include "inspircd.h"
 #include "inspstring.h"
@@ -766,7 +763,7 @@ void ModeParser::Process(const std::vector<std::string>& parameters, User *user,
                if (!output_sequence.empty())
                {
                        LastParseParams.push_front(output_sequence);
-                       if (servermode)
+                       if (!user)
                        {
                                if (type == MODETYPE_CHANNEL)
                                {
@@ -1164,7 +1161,7 @@ void ModeHandler::RemoveMode(User* user, irc::modestacker* stack)
                        sprintf(moderemove,"-%c",this->GetModeChar());
                        parameters.push_back(user->nick);
                        parameters.push_back(moderemove);
-                       ServerInstance->Modes->Process(parameters, ServerInstance->FakeClient, false);
+                       ServerInstance->Modes->Process(parameters, ServerInstance->FakeClient, true);
                }
        }
 }