0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

hunt_server: Disallow wildcarded nicknames.

Any hunted parameter with wildcards is now assumed
to be a server, never a user.

Reasons:
* fewer match() calls
* do not disclose existing nicknames
* more intuitive behaviour for CONNECT

m_trace has a copy of some hunt_server logic in it
(for the RPL_TRACELINK reply), so adjust that too.
This commit is contained in:
Jilles Tjoelker 2011-01-08 17:47:05 +01:00
parent af9e5b5ef7
commit 2fb0796158
2 changed files with 2 additions and 2 deletions

View file

@ -111,7 +111,7 @@ m_trace(struct Client *client_p, struct Client *source_p, int parc, const char *
if(ac2ptr == NULL)
{
RB_DLINK_FOREACH(ptr, global_client_list.head)
RB_DLINK_FOREACH(ptr, global_serv_list.head)
{
ac2ptr = ptr->data;

View file

@ -157,7 +157,7 @@ hunt_server(struct Client *client_p, struct Client *source_p,
*/
if(!target_p && wilds)
{
RB_DLINK_FOREACH(ptr, global_client_list.head)
RB_DLINK_FOREACH(ptr, global_serv_list.head)
{
if(match(new, ((struct Client *) (ptr->data))->name))
{