+2002-21-05 Andrew Miller <a1kmm@mware.virtualave.net>
+ * ircd/ircd_relay.c: stop an information leak about the
+ the network topography from relayed messages.
+
2002-04-19 Alex Badea <vampire@p16.pub.ro>
* ircd/m_who.c (m_who): disallow non-opers to /who server.name
assert(0 != text);
assert(0 != server);
- if (0 == (acptr = FindServer(server + 1))) {
+ if ((acptr = FindServer(server + 1)) == NULL ||
+ !IsChannelService(acptr))
+ {
send_reply(sptr, ERR_NOSUCHNICK, name);
return;
}
/*
* NICK[%host]@server addressed? See if <server> is me first
*/
- if (!IsMe(acptr)) {
+ if (!IsMe(acptr))
+ {
sendcmdto_one(sptr, CMD_PRIVATE, acptr, "%s :%s", name, text);
return;
}
*/
if (!(acptr = FindUser(name)) || !MyUser(acptr) ||
(!EmptyString(host) && 0 != match(host, cli_user(acptr)->host)) ||
- !IsChannelService(acptr)) {
-#if 0
+ !IsChannelService(acptr))
+ {
+ /*
+ * By this stage we might as well not bother because they will
+ * know that this server is currently linked because of the
+ * increased lag.
+ */
send_reply(sptr, ERR_NOSUCHNICK, name);
-#endif
return;
}