Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / m_squit.c
index f28015de752a4edd130c6e80a21db5877837d4e4..2d46d8c69e04b726703514223ab488fd45f63363 100644 (file)
@@ -143,7 +143,7 @@ int mo_squit(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   
   /* Not found? Bugger. */
   if (!acptr || IsMe(acptr))
-    return send_error_to_client(sptr, ERR_NOSUCHSERVER, server);
+    return send_reply(sptr, ERR_NOSUCHSERVER, server);
 
   /*
    * Look for a matching server that is closer,
@@ -158,7 +158,7 @@ int mo_squit(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   
   /* Disallow local opers to squit remote servers */
   if (IsLocOp(sptr) && !MyConnect(acptr))
-    return send_error_to_client(sptr, ERR_NOPRIVILEGES);
+    return send_reply(sptr, ERR_NOPRIVILEGES);
 
   return exit_client(cptr, acptr, sptr, comment);
 }