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:
parent
86044bd2d6
commit
e9ced3de20
|
@ -110,7 +110,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;
|
||||
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue