mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
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
This commit is contained in:
parent
eae1a96c36
commit
d125d4964a
@ -131,7 +131,7 @@ bool TreeSocket::Outbound_Reply_Server(std::deque<std::string> ¶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<std::string> ¶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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user