From 369aef56c68aecccac7c3c30108fd958cfdc62f0 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 4 Apr 2008 18:50:09 +0000 Subject: Allow for custom prefixes as status chars in /notice @#chan etc. Up until now theyve just used a hard coded check on @%+. This slows down writing to a channels users by a small amount, but only when writing to a prefix is happening. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9329 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_privmsg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/cmd_privmsg.cpp') diff --git a/src/commands/cmd_privmsg.cpp b/src/commands/cmd_privmsg.cpp index c9100dcd9..9ce089dc0 100644 --- a/src/commands/cmd_privmsg.cpp +++ b/src/commands/cmd_privmsg.cpp @@ -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++; -- cgit v1.3.1-10-gc9f91