summaryrefslogtreecommitdiff
path: root/src/commands/cmd_notice.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 18:50:09 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 18:50:09 +0000
commit369aef56c68aecccac7c3c30108fd958cfdc62f0 (patch)
tree8307db770ef949cf64d9f3c0886a1a52f6b4f37e /src/commands/cmd_notice.cpp
parentfc8fb6b916e4dbb155af3e54a3c1cd5308fdf5e6 (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_notice.cpp')
-rw-r--r--src/commands/cmd_notice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cmd_notice.cpp b/src/commands/cmd_notice.cpp
index ee9868fb3..1a47b56fb 100644
--- a/src/commands/cmd_notice.cpp
+++ b/src/commands/cmd_notice.cpp
@@ -51,7 +51,7 @@ CmdResult CommandNotice::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++;