Author: Kev <klmitch@mit.edu>
authorKevin L. Mitchell <klmitch@mit.edu>
Mon, 23 Apr 2001 20:28:50 +0000 (20:28 +0000)
committerKevin L. Mitchell <klmitch@mit.edu>
Mon, 23 Apr 2001 20:28:50 +0000 (20:28 +0000)
Log message:

forward-ports could become a full-time job if we're not careful...

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@437 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/m_links.c

index d143e43780b7f9c8d942a0ed4c67670c9813670f..b371124b14fd226eb298ea557ea34d90fc86c978 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-04-23  Kevin L. Mitchell  <klmitch@mit.edu>
 
+       * ircd/m_links.c (m_links_redirect): forward-port RPL_ENDOFLINKS
+       change to make Khaled happy...
+
        * ircd/m_whois.c (do_whois): pull-up of m_whois() fix
        (do_whois): duh...
 
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");