diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-09 22:07:45 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-09 22:07:45 -0700 |
commit | 6a5e9a013a2bf8ca6b99c1c45b58de4d72b662ef (patch) | |
tree | 2c65ef28798489d020d11839d336491cfe81bfcc /src/gui/chat.cpp | |
parent | bbc0fb7292460c7d383d16c25aa21bc68c06c27c (diff) | |
download | mana-6a5e9a013a2bf8ca6b99c1c45b58de4d72b662ef.tar.gz mana-6a5e9a013a2bf8ca6b99c1c45b58de4d72b662ef.tar.bz2 mana-6a5e9a013a2bf8ca6b99c1c45b58de4d72b662ef.tar.xz mana-6a5e9a013a2bf8ca6b99c1c45b58de4d72b662ef.zip |
Added the ability to save GM assert state to the client, as requested.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index d4818504..3c569ded 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -84,6 +84,11 @@ Window(""), mNetwork(network), mTmpVisible(false) mReturnToggles = config.getValue("ReturnToggles", "0") == "1"; mRecorder = new Recorder(this); mParty = new Party(this, mNetwork); + + // If the player had @assert on in the last session, ask the server to + // run the @assert command for the player again. Convenience for GMs. + if (config.getValue(player_node->getName() + "GMassert", 0)) + chatSend(player_node->getName(), "@assert"); } ChatWindow::~ChatWindow() |