From d125d4964a03b65af1cf1676677e2f141202b07a Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 8 Apr 2008 16:03:02 +0000 Subject: add a couple of parenthesis to the password comparison, because i couldnt easily make out the order of precedence, clarify it a bit :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9426 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_spanningtree/server.cpp b/src/modules/m_spanningtree/server.cpp index bab3d9adb..703972f2c 100644 --- a/src/modules/m_spanningtree/server.cpp +++ b/src/modules/m_spanningtree/server.cpp @@ -131,7 +131,7 @@ bool TreeSocket::Outbound_Reply_Server(std::deque ¶ms) continue; if (!ComparePass(this->MakePass(x->RecvPass, this->GetOurChallenge(), password)) || - x->RecvPass != password && !this->GetTheirChallenge().empty()) + (x->RecvPass != password && !this->GetTheirChallenge().empty())) continue; TreeServer* CheckDupe = Utils->FindServer(sname); @@ -219,7 +219,7 @@ bool TreeSocket::Inbound_Server(std::deque ¶ms) continue; if (!ComparePass(this->MakePass(x->RecvPass, this->GetOurChallenge(), password)) || - x->RecvPass != password && !this->GetTheirChallenge().empty()) + (x->RecvPass != password && !this->GetTheirChallenge().empty())) continue; /* Check for fully initialized instances of the server by id */ -- cgit v1.2.3