]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_privmsg.cpp
Fixed m_saquit to direct the command to the user's server and from there send a QUIT...
[user/henk/code/inspircd.git] / src / cmd_privmsg.cpp
index 00a7f13669db0beeb1e39b8d7628a35887554265..5c3020b5b4e75ef2bea1cc87d2580b00503db87a 100644 (file)
@@ -118,7 +118,11 @@ CmdResult cmd_privmsg::Handle (const char** parameters, int pcnt, userrec *user)
                return CMD_SUCCESS;
        }
 
-       dest = ServerInstance->FindNick(parameters[0]);
+       if (IS_LOCAL(user))
+               dest = ServerInstance->FindNickOnly(parameters[0]);
+       else
+               dest = ServerInstance->FindNick(parameters[0]);
+
        if (dest)
        {
                if (!*parameters[1])