diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-25 16:30:20 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-25 16:30:20 -0600 |
commit | c694500e3ad9b958910ce6b230378caecfa83257 (patch) | |
tree | 47197fcab7dfab4a88edb6df5210908ed84c74af /src/gui/widgets/chattab.cpp | |
parent | 19b2ed2df87753ab8f767652f728ec6c30bb3ee6 (diff) | |
download | mana-c694500e3ad9b958910ce6b230378caecfa83257.tar.gz mana-c694500e3ad9b958910ce6b230378caecfa83257.tar.bz2 mana-c694500e3ad9b958910ce6b230378caecfa83257.tar.xz mana-c694500e3ad9b958910ce6b230378caecfa83257.zip |
Fix chat actions
Diffstat (limited to 'src/gui/widgets/chattab.cpp')
-rw-r--r-- | src/gui/widgets/chattab.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index 01d8b62b..2f967162 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -97,10 +97,11 @@ void ChatTab::chatLog(std::string line, int own, bool ignoreRecord) } // *implements actions in a backwards compatible way* - if (own == BY_PLAYER && + if ((own == BY_PLAYER || own == BY_OTHER) && tmp.text.at(0) == '*' && tmp.text.at(tmp.text.length()-1) == '*') { + printf("Action from %s: %s\n", tmp.nick.c_str(), tmp.text.c_str()); tmp.text[0] = ' '; tmp.text.erase(tmp.text.length() - 1); own = ACT_IS; |