X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_spanningtree%2Fprivmsg.cpp;h=316ad2e5cd996997d5560876b9521f95f009476f;hb=f9ef4ebc9dc4fd46cdafcc76df644b4896251dac;hp=3e27258151ff56bf060f79fa651bfbd85637d53f;hpb=d8f50c5a513c73aeaf45da710e829c4fee1cf8cc;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_spanningtree/privmsg.cpp b/src/modules/m_spanningtree/privmsg.cpp index 3e2725815..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++; @@ -40,7 +40,7 @@ bool TreeSocket::ServerMessage(const std::string &messagetype, const std::string Channel* channel = Instance->FindChan(target); - if (target) + if (channel) { if (messagetype == "PRIVMSG") {