summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgl-message.cc
diff options
context:
space:
mode:
authorFlorian Diebold <flodiebold@gmail.com>2012-06-29 21:00:57 +0200
committerFlorian Diebold <flodiebold@gmail.com>2012-06-29 21:00:57 +0200
commit115a876427a785ba361eaa5f11198dfa86439930 (patch)
tree15e6cda81b21b8525d04f0db5cdfdb8bae923760 /crawl-ref/source/dgl-message.cc
parentf0ad5b31da176a55f1cb14ba26218f7abaa0a9cf (diff)
downloadcrawl-ref-115a876427a785ba361eaa5f11198dfa86439930.tar.gz
crawl-ref-115a876427a785ba361eaa5f11198dfa86439930.zip
Make the DGL/webtiles chat message logging optional.
Diffstat (limited to 'crawl-ref/source/dgl-message.cc')
-rw-r--r--crawl-ref/source/dgl-message.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/dgl-message.cc b/crawl-ref/source/dgl-message.cc
index f38c3aa42e..95f0061120 100644
--- a/crawl-ref/source/dgl-message.cc
+++ b/crawl-ref/source/dgl-message.cc
@@ -35,8 +35,9 @@ static void _show_message_line(std::string line)
fs.textcolor(LIGHTGREY);
fs.cprintf("%s", line.c_str());
formatted_mpr(fs, MSGCH_PLAIN, 0);
- take_note(Note(NOTE_MESSAGE, MSGCH_PLAIN, 0,
- (sender + ": " + line).c_str()));
+ if (Options.note_chat_messages)
+ take_note(Note(NOTE_MESSAGE, MSGCH_PLAIN, 0,
+ (sender + ": " + line).c_str()));
}
}