From c84ad4cc16452b86bb444a22a55203afa4fa5454 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 14 Mar 2008 15:22:27 +0000 Subject: 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 --- src/inspircd.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/inspircd.cpp') 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; -- cgit v1.3.1-10-gc9f91