]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_spanningtree Fix clang warning and wrong operator in if
authorAttila Molnar <attilamolnar@hush.com>
Wed, 18 Dec 2013 15:31:09 +0000 (16:31 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Wed, 18 Dec 2013 15:31:09 +0000 (16:31 +0100)
src/modules/m_spanningtree/main.cpp
src/modules/m_spanningtree/treesocket.h

index 017f1c522e7753154ca091793f06dd537269e151..39ff222c52a39eacaf2e7a7e87e079a8ec6e05c5 100644 (file)
@@ -589,7 +589,7 @@ void ModuleSpanningTree::OnUserPostNick(User* user, const std::string &oldnick)
 
 void ModuleSpanningTree::OnUserKick(User* source, Membership* memb, const std::string &reason, CUList& excepts)
 {
-       if ((!IS_LOCAL(source) || source != ServerInstance->FakeClient))
+       if ((!IS_LOCAL(source)) && (source != ServerInstance->FakeClient))
                return;
 
        CmdBuilder params(source, "KICK");
index 097f60fbb95a0c9ca93fedfaa9280a834a52be24..4f72ed00608693e8b77275346b078f9c6398bd70 100644 (file)
@@ -89,7 +89,7 @@ struct CapabData
  */
 class TreeSocket : public BufferedSocket
 {
-       class BurstState;
+       struct BurstState;
 
        std::string linkID;                     /* Description for this link */
        ServerState LinkState;                  /* Link state */