summaryrefslogtreecommitdiff
path: root/src/net/tmwa/loginhandler.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-04 16:06:41 +0000
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-04 16:06:41 +0000
commit12bec57276d30cd513b1f6b865ee116bce86fc17 (patch)
tree2ccbf39a687b2601696dc721e039ab8fb4f45559 /src/net/tmwa/loginhandler.h
parenta25d857ed0bebc2c3e1473d06bea89286941886c (diff)
downloadmana-12bec57276d30cd513b1f6b865ee116bce86fc17.tar.gz
mana-12bec57276d30cd513b1f6b865ee116bce86fc17.tar.bz2
mana-12bec57276d30cd513b1f6b865ee116bce86fc17.tar.xz
mana-12bec57276d30cd513b1f6b865ee116bce86fc17.zip
Fixed duplication of player name in chat
* Fixed duplication of player name in chat Closes #49
Diffstat (limited to 'src/net/tmwa/loginhandler.h')
-rw-r--r--src/net/tmwa/loginhandler.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/net/tmwa/loginhandler.h b/src/net/tmwa/loginhandler.h
index 3ff33e83..4d137c05 100644
--- a/src/net/tmwa/loginhandler.h
+++ b/src/net/tmwa/loginhandler.h
@@ -79,12 +79,15 @@ class LoginHandler : public MessageHandler, public Net::LoginHandler
const Token &getToken() const { return mToken; }
+ unsigned getServerVersion() const { return mServerVersion; }
+
private:
void sendLoginRegister(const std::string &username,
const std::string &password);
- bool mVersionResponse;
- bool mRegistrationEnabled;
+ unsigned mServerVersion = 0;
+ bool mVersionResponse = false;
+ bool mRegistrationEnabled = true;
std::string mUpdateHost;
Worlds mWorlds;
Token mToken;