]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/kill.cpp
Clarify module mismatch message
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / kill.cpp
index c70ce27cb116c881e64c067433726ce73d992046..b255e9cfc87b3aad7e11542e76151891744d30b8 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -33,10 +33,9 @@ bool TreeSocket::RemoteKill(const std::string &prefix, std::deque<std::string> &
        if (who)
        {
                /* Prepend kill source, if we don't have one */
-               if (*(params[1].c_str()) != '[')
+               if (*(params[1].c_str()) != 'K')
                {
-                       TreeServer* ts = Utils->FindServer(prefix);
-                       params[1] = "[" + (ts ? ts->GetName() : prefix) + "] Killed (" + params[1] +")";
+                       params[1] = "Killed (" + params[1] +")";
                }
                std::string reason = params[1];
                params[1] = ":" + params[1];