X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_spanningtree%2Fprivmsg.cpp;h=4a266a465657e054ed2fcd4f2f57fa65c9c933a9;hb=ad6052e7340ed30bb6e3282c10c287eacd2f2e0f;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..4a266a465 100644 --- a/src/modules/m_spanningtree/privmsg.cpp +++ b/src/modules/m_spanningtree/privmsg.cpp @@ -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") {