Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / m_links.c
index 7f1f98e3ec5606866051a6686b12d0e4955693f8..61d150112185e72b734fa378c718880ecf799493 100644 (file)
@@ -150,6 +150,11 @@ int m_links(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
 int m_links_redirect(struct Client* cptr, struct Client* sptr, int parc,
                     char* parv[])
 {
+
+  if (parc > 2)
+    return send_reply(cptr, ERR_NOPRIVILEGES);
+
+  send_reply(sptr, RPL_ENDOFLINKS, parc < 2 ? "*" : parv[1]);
   sendcmdto_one(&me, CMD_NOTICE, sptr, "%C :%s", sptr,
                "/LINKS has been disabled, from CFV-165.  "
                "Visit http://www.undernet.org/servers.php");