summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/privmsg.cpp
diff options
context:
space:
mode:
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++;