diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-01-03 17:54:26 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-01-03 17:54:26 +0000 |
commit | 65ef705d73144167aa6e3eeef87fd55a691fc9e0 (patch) | |
tree | 1d4884c74c177a125d444a81554730693695c346 /src/game.cpp | |
parent | 08310d2bad4f7d2f00ef506630a350bff2f4a951 (diff) | |
download | Mana-65ef705d73144167aa6e3eeef87fd55a691fc9e0.tar.gz Mana-65ef705d73144167aa6e3eeef87fd55a691fc9e0.tar.bz2 Mana-65ef705d73144167aa6e3eeef87fd55a691fc9e0.tar.xz Mana-65ef705d73144167aa6e3eeef87fd55a691fc9e0.zip |
Enabled some /commands.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 37b2e995..7f873aef 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -196,7 +196,7 @@ void createGuiWindows() { // Create dialogs chatWindow = new ChatWindow( - config.getValue("homeDir", "") + std::string("/chatlog.txt")); + config.getValue("homeDir", "") + std::string("/chatlog.txt")); menuWindow = new MenuWindow(); statusWindow = new StatusWindow(); miniStatusWindow = new MiniStatusWindow(); @@ -1913,6 +1913,15 @@ void do_parse() being->setName(msg.readString(24)); } break; + + case SMSG_WHO_ANSWER: + { + std::stringstream userMsg; + userMsg << "Online users: "; + userMsg << msg.readInt32(); + chatWindow->chatLog(userMsg.str(), BY_SERVER); + } + break; case 0x0119: // Change in players look |