+2002-04-17 beware <steendijk@tomaatnet.nl>
+
+ * m_whois.c (m_whois): disallow remote queries for non-existent
+ local users when originated by a non-oper
+
2002-04-16 Alex Badea <vampire@p16.pub.ro>
* ircd/s_user.c (hunt_server_cmd): also send a "no such server"
/* If remote queries are disabled, then use the *second* parameter of
* of whois, so /whois nick nick still works.
*/
- if (!IsOper(sptr))
+ if (!IsAnOper(sptr))
+ {
+ if (!FindUser(parv[2]))
+ {
+ send_reply(sptr, ERR_NOSUCHNICK, parv[2]);
+ send_reply(sptr, RPL_ENDOFWHOIS, parv[2]);
+ return 0;
+ }
parv[1] = parv[2];
+ }
#endif
if (hunt_server_cmd(sptr, CMD_WHOIS, cptr, 0, "%C :%s", 1, parc, parv) !=