diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-28 23:06:32 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-28 23:06:32 -0600 |
commit | 8748f26234bba1e71bbe059147fb02256f8cec2a (patch) | |
tree | cff8674ec8124fe19aab1f92197c6c2b2b447aa1 /src/gui | |
parent | 088c0e4680d8013f01bdc70ac4f340f98afa2394 (diff) | |
download | mana-8748f26234bba1e71bbe059147fb02256f8cec2a.tar.gz mana-8748f26234bba1e71bbe059147fb02256f8cec2a.tar.bz2 mana-8748f26234bba1e71bbe059147fb02256f8cec2a.tar.xz mana-8748f26234bba1e71bbe059147fb02256f8cec2a.zip |
Fix output location for CommandHandler
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/chat.cpp | 4 | ||||
-rw-r--r-- | src/gui/widgets/chattab.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 398b5792..10993027 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -316,12 +316,12 @@ void ChatWindow::doPresent() mRecorder->record(timeStr.str() + _("Present: ") + response + "."); - localChatTab->chatLog(_("Attendance written to record log."), + getFocused()->chatLog(_("Attendance written to record log."), BY_SERVER, true); } else { - localChatTab->chatLog(_("Present: ") + response, BY_SERVER); + getFocused()->chatLog(_("Present: ") + response, BY_SERVER); } } diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index 95606281..c4563cc9 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -314,5 +314,5 @@ void ChatTab::handleInput(const std::string &msg) { void ChatTab::handleCommand(std::string msg) { - commandHandler->handleCommand(msg); + commandHandler->handleCommand(msg, this); } |