]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/core/m_error.c
Removal of ancient SVN ID's part one
[irc/rqf/shadowircd.git] / modules / core / m_error.c
index 5a5bd67a6ae4e6077dc79ebf949ce6ef4c70fd45..07426b5f0856c1c6c50be54303156d2f930472f9 100644 (file)
@@ -21,7 +21,6 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: m_error.c 494 2006-01-15 16:08:28Z jilles $
  */
 
 #include "stdinc.h"
@@ -85,7 +84,6 @@ is_safe_error(const char *message)
  * although this is called internally from other functions
  * --msa
  *
- *      parv[0] = sender prefix
  *      parv[*] = parameters
  */
 int
@@ -96,8 +94,11 @@ m_error(struct Client *client_p, struct Client *source_p, int parc, const char *
 
        para = (parc > 1 && *parv[1] != '\0') ? parv[1] : "<>";
 
-       ilog(L_SERVER, "Received ERROR message from %s: %s",
-            log_client_name(source_p, SHOW_IP), para);
+       if (IsAnyServer(client_p))
+       {
+               ilog(L_SERVER, "Received ERROR message from %s: %s",
+                    log_client_name(source_p, SHOW_IP), para);
+       }
 
        if(is_safe_error(para))
                hideit = 0;