summaryrefslogtreecommitdiffhomepage
path: root/Stars45/NetServerConfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/NetServerConfig.h')
-rw-r--r--Stars45/NetServerConfig.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Stars45/NetServerConfig.h b/Stars45/NetServerConfig.h
index a81c4fd..da740cb 100644
--- a/Stars45/NetServerConfig.h
+++ b/Stars45/NetServerConfig.h
@@ -60,6 +60,7 @@ public:
NET_GAME_PUBLIC
};
+ const Text& Hostname() const { return hostname; }
const Text& Name() const { return name; }
const Text& GetAdminName() const { return admin_name; }
const Text& GetAdminPass() const { return admin_pass; }
@@ -73,6 +74,7 @@ public:
int GetGameType() const { return game_type; }
int GetAuthLevel() const { return auth_level; }
+ void SetHostname(const char* s) { hostname = Clean(s); }
void SetName(const char* s) { name = Clean(s); }
void SetAdminName(const char* s){ admin_name = Clean(s); }
void SetAdminPass(const char* s){ admin_pass = Clean(s); }
@@ -100,6 +102,7 @@ private:
void LoadBanList();
Text Clean(const char* s);
+ Text hostname;
Text name;
Text admin_name;
Text admin_pass;