Remove the massnotice wildcard restriction
This commit is contained in:
parent
ef62a62f62
commit
d819df92b8
1 changed files with 0 additions and 17 deletions
|
@ -958,7 +958,6 @@ handle_special(enum message_type msgtype, struct Client *client_p,
|
||||||
{
|
{
|
||||||
struct Client *target_p;
|
struct Client *target_p;
|
||||||
char *server;
|
char *server;
|
||||||
char *s;
|
|
||||||
|
|
||||||
/* user[%host]@server addressed?
|
/* user[%host]@server addressed?
|
||||||
* NOTE: users can send to user@server, but not user%host@server
|
* NOTE: users can send to user@server, but not user%host@server
|
||||||
|
@ -1035,22 +1034,6 @@ handle_special(enum message_type msgtype, struct Client *client_p,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if((s = strrchr(nick, '.')) == NULL)
|
|
||||||
{
|
|
||||||
sendto_one_numeric(source_p, ERR_NOTOPLEVEL,
|
|
||||||
form_str(ERR_NOTOPLEVEL), nick);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
while(*++s)
|
|
||||||
if(*s == '.' || *s == '*' || *s == '?')
|
|
||||||
break;
|
|
||||||
if(*s == '*' || *s == '?')
|
|
||||||
{
|
|
||||||
sendto_one_numeric(source_p, ERR_WILDTOPLEVEL,
|
|
||||||
form_str(ERR_WILDTOPLEVEL), nick);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
sendto_match_butone(IsServer(client_p) ? client_p : NULL, source_p,
|
sendto_match_butone(IsServer(client_p) ? client_p : NULL, source_p,
|
||||||
nick + 1,
|
nick + 1,
|
||||||
(*nick == '#') ? MATCH_HOST : MATCH_SERVER,
|
(*nick == '#') ? MATCH_HOST : MATCH_SERVER,
|
||||||
|
|
Loading…
Reference in a new issue