]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/irc.c
Make real use of the CLIENT_SERVICE client type.
[ngircd-alex.git] / src / ngircd / irc.c
index ad9d32c9ff0845a90a7a7a2299956b1459bbe986..0741aefa9622f02dc06439c63cba0142365d1f46 100644 (file)
@@ -419,7 +419,14 @@ Send_Message(CLIENT * Client, REQUEST * Req, int ForceType, bool SendErrors)
 
                if (cl) {
                        /* Target is a user, enforce type */
+#ifndef STRICT_RFC
+                       if (Client_Type(cl) != ForceType &&
+                           !(ForceType == CLIENT_USER &&
+                             (Client_Type(cl) == CLIENT_USER ||
+                              Client_Type(cl) == CLIENT_SERVICE))) {
+#else
                        if (Client_Type(cl) != ForceType) {
+#endif
                                if (!SendErrors)
                                        return CONNECTED;
                                return IRC_WriteStrClient(from, ERR_NOSUCHNICK_MSG,