diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-04 18:50:09 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-04 18:50:09 +0000 |
commit | 369aef56c68aecccac7c3c30108fd958cfdc62f0 (patch) | |
tree | 8307db770ef949cf64d9f3c0886a1a52f6b4f37e /src/commands/cmd_privmsg.cpp | |
parent | fc8fb6b916e4dbb155af3e54a3c1cd5308fdf5e6 (diff) |
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
Diffstat (limited to 'src/commands/cmd_privmsg.cpp')
-rw-r--r-- | src/commands/cmd_privmsg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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++; |