aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/privmsg.cpp
diff options
context:
space:
mode:
authorGravatar brain2008-04-04 18:50:09 +0000
committerGravatar brain2008-04-04 18:50:09 +0000
commit369aef56c68aecccac7c3c30108fd958cfdc62f0 (patch)
tree8307db770ef949cf64d9f3c0886a1a52f6b4f37e /src/modules/m_spanningtree/privmsg.cpp
parentDocument new logging and m_chanlog (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/modules/m_spanningtree/privmsg.cpp')
-rw-r--r--src/modules/m_spanningtree/privmsg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/privmsg.cpp b/src/modules/m_spanningtree/privmsg.cpp
index 4a266a465..316ad2e5c 100644
--- a/src/modules/m_spanningtree/privmsg.cpp
+++ b/src/modules/m_spanningtree/privmsg.cpp
@@ -32,7 +32,7 @@ bool TreeSocket::ServerMessage(const std::string &messagetype, const std::string
const char* target = params[0].c_str();
std::string text = params[1].c_str();
- if ((*target == '@') || (*target == '%') || (*target == '+'))
+ if (Instance->Modes->FindPrefix(*target))
{
status = *target;
target++;