]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_privmsg.cpp
Chain ValidateServerName onto ValidateHostname so that the servername gets hostname...
[user/henk/code/inspircd.git] / src / commands / cmd_privmsg.cpp
index c9100dcd9ed3ec8ebfd6704a3532f1523fcc08c7..9ce089dc0cd44c0129eddf6976b446575a4ca86c 100644 (file)
@@ -50,7 +50,7 @@ CmdResult CommandPrivmsg::Handle (const char* const* parameters, int pcnt, User
        }
        char status = 0;
        const char* target = parameters[0];
-       if ((*target == '@') || (*target == '%') || (*target == '+'))
+       if (ServerInstance->Modes->FindPrefix(*target))
        {
                status = *target;
                target++;