mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +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:
parent
af9e5b5ef7
commit
2fb0796158
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 a new issue