]> jfr.im git - solanum.git/commitdiff
Remove the massnotice wildcard restriction
authorEd Kellett <redacted>
Sun, 7 Jun 2020 14:06:24 +0000 (15:06 +0100)
committerEd Kellett <redacted>
Sun, 7 Jun 2020 17:10:51 +0000 (18:10 +0100)
modules/core/m_message.c

index 3f188d4689596543dc5dd0e5a8166285d1bbebda..3c31554a65d0f7658cd259d8f6953e845dc13775 100644 (file)
@@ -958,7 +958,6 @@ handle_special(enum message_type msgtype, struct Client *client_p,
 {
        struct Client *target_p;
        char *server;
-       char *s;
 
        /* user[%host]@server addressed?
         * 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;
                }
 
-               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,
                                    nick + 1,
                                    (*nick == '#') ? MATCH_HOST : MATCH_SERVER,