]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_customtitle.cpp
m_flashpolicyd, m_httpd Handle timeouts using the Timer system
[user/henk/code/inspircd.git] / src / modules / m_customtitle.cpp
index 67000e98e5a47b6928d4a77b0deb5b81d03fff59..3386e8cd7ca35a38e5c349b2a97ea59c8ae517ab 100644 (file)
@@ -48,7 +48,7 @@ class CommandTitle : public Command
                        std::string title = i->second->getString("title");
                        std::string vhost = i->second->getString("vhost");
 
-                       if (Name == parameters[0] && !ServerInstance->PassCompare(user, pass, parameters[1], hash) &&
+                       if (Name == parameters[0] && ServerInstance->PassCompare(user, pass, parameters[1], hash) &&
                                InspIRCd::MatchMask(host, userHost, userIP) && !title.empty())
                        {
                                ctitle.set(user, title);
@@ -56,7 +56,7 @@ class CommandTitle : public Command
                                ServerInstance->PI->SendMetaData(user, "ctitle", title);
 
                                if (!vhost.empty())
-                                       user->ChangeDisplayedHost(vhost.c_str());
+                                       user->ChangeDisplayedHost(vhost);
 
                                user->WriteNotice("Custom title set to '" + title + "'");
 
@@ -89,7 +89,7 @@ class ModuleCustomTitle : public Module
                        const std::string* ctitle = cmd.ctitle.get(dest);
                        if (ctitle)
                        {
-                               ServerInstance->SendWhoisLine(user, dest, 320, "%s %s :%s",user->nick.c_str(), dest->nick.c_str(), ctitle->c_str());
+                               ServerInstance->SendWhoisLine(user, dest, 320, "%s :%s", dest->nick.c_str(), ctitle->c_str());
                        }
                }
                /* Don't block anything */