diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-03-14 15:22:27 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-03-14 15:22:27 +0000 |
commit | c84ad4cc16452b86bb444a22a55203afa4fa5454 (patch) | |
tree | 462a647032f3e7b1e45b7e17352a0abc0102b1cc /src/inspircd.cpp | |
parent | 0b58bc2585ccc96219a238a9ef9ff73a125fa531 (diff) |
Add fixes to stop people changing the SID of a live server - certain configuration values are silently ignored on rehash, namely the server name and server id.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9073 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 73b483a42..04a0907a7 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -499,10 +499,7 @@ InspIRCd::InspIRCd(int argc, char** argv) * For an explanation as to exactly how this works, and why it works this way, see GetUID(). * -- w00t */ - if (*Config->sid) - { - } - else + if (!*Config->sid) { // Generate one size_t sid = 0; |