]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_sasl Enforce usage of uuids in server-to-server SASL command
authorAttila Molnar <attilamolnar@hush.com>
Sat, 5 Dec 2015 14:04:29 +0000 (15:04 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Sat, 5 Dec 2015 14:04:29 +0000 (15:04 +0100)
src/modules/m_sasl.cpp

index 341b3aea7166139068f75039e4ebc1b101e98bb4..a38ed1a1bed21b1f5196870d055e64dd022c24f0 100644 (file)
@@ -218,7 +218,7 @@ class CommandSASL : public Command
 
        CmdResult Handle(const std::vector<std::string>& parameters, User *user)
        {
-               User* target = ServerInstance->FindNick(parameters[1]);
+               User* target = ServerInstance->FindUUID(parameters[1]);
                if ((!target) || (IS_SERVER(target)))
                {
                        ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "User not found in sasl ENCAP event: %s", parameters[1].c_str());