From: Kevin L. Mitchell Date: Mon, 23 Apr 2001 20:28:50 +0000 (+0000) Subject: Author: Kev X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=73f188b44cf98613181c07b86514bc7bf684e303 Author: Kev 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 --- diff --git a/ChangeLog b/ChangeLog index d143e43..b371124 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2001-04-23 Kevin L. Mitchell + * 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... diff --git a/ircd/m_links.c b/ircd/m_links.c index 7f1f98e..61d1501 100644 --- a/ircd/m_links.c +++ b/ircd/m_links.c @@ -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");