summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-04-01 16:15:19 +0200
committerattilamolnar <attilamolnar@hush.com>2013-04-01 16:15:19 +0200
commit6a080dfd911e9463d35aad226384aa2a94f38057 (patch)
treecb7507fd3e2876f6d06a7a94dc7680847f00cc7a /src/configreader.cpp
parentde9cf90b6b9c0a65ec21030c3906306b5c17bde8 (diff)
Convert IsSID() to a static member function, modules shouldn't override it
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 1f863ba62..df78fcab8 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -483,7 +483,7 @@ void ServerConfig::Fill()
ServerName = ConfValue("server")->getString("name");
sid = ConfValue("server")->getString("id");
ValidHost(ServerName, "<server:name>");
- if (!sid.empty() && !ServerInstance->IsSID(sid))
+ if (!InspIRCd::IsSID(sid))
throw CoreException(sid + " is not a valid server ID. A server ID must be 3 characters long, with the first character a digit and the next two characters a digit or letter.");
}
else