diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 0dc824076..00e831b66 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -291,6 +291,19 @@ void chop(char* str) } +long GetRevision() +{ + char Revision[] = "$Revision$"; + char *s1 = Revision; + char *savept; + char *v1 = strtok_r(s1," ",&savept); + s1 = savept; + char *v2 = strtok_r(s1," ",&savept); + s1 = savept; + return (long)(atof(v2)*10000); +} + + std::string getservername() { return ServerName; |