summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgl-message.cc
diff options
context:
space:
mode:
authorShmuale Mark <shm.mark@gmail.com>2014-04-23 10:25:29 -0400
committerShmuale Mark <shm.mark@gmail.com>2014-04-23 10:26:32 -0400
commit55ab616a8764c7c7b3cea8aa8461c82f73aa44aa (patch)
treea5bb24a17fd7e1fdc4bfce44c2671af44e727616 /crawl-ref/source/dgl-message.cc
parent32ba97dc61202426f563582238aedd7b668ca8c1 (diff)
downloadcrawl-ref-55ab616a8764c7c7b3cea8aa8461c82f73aa44aa.tar.gz
crawl-ref-55ab616a8764c7c7b3cea8aa8461c82f73aa44aa.zip
Don't log DGL messages twice in certain instances (#8414).
This was accomplished by adding a new message channel, MSGCH_DGL_MESSAGE.
Diffstat (limited to 'crawl-ref/source/dgl-message.cc')
-rw-r--r--crawl-ref/source/dgl-message.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/dgl-message.cc b/crawl-ref/source/dgl-message.cc
index 0f4e93432f..a31b5b843f 100644
--- a/crawl-ref/source/dgl-message.cc
+++ b/crawl-ref/source/dgl-message.cc
@@ -34,10 +34,10 @@ static void _show_message_line(string line)
fs.cprintf("%s: ", sender.c_str());
fs.textcolor(LIGHTGREY);
fs.cprintf("%s", line.c_str());
- formatted_mpr(fs, MSGCH_PLAIN, 0);
+ formatted_mpr(fs, MSGCH_DGL_MESSAGE, 0);
if (Options.note_dgl_messages)
{
- take_note(Note(NOTE_MESSAGE, MSGCH_PLAIN, 0,
+ take_note(Note(NOTE_MESSAGE, MSGCH_DGL_MESSAGE, 0,
(sender + ": " + line).c_str()));
}
}
@@ -86,7 +86,7 @@ static void _read_each_message()
if (say_got_msg)
{
- mprf(MSGCH_PROMPT, "Your messages:");
+ mprf(MSGCH_DGL_MESSAGE, "Your messages:");
say_got_msg = false;
}
@@ -125,7 +125,7 @@ void read_messages()
static void _announce_messages()
{
// XXX: We could do a NetHack-like mail daemon here at some point.
- mpr("Beep! Your pager goes off! Use _ to check your messages.");
+ mpr("Beep! Your pager goes off! Use _ to check your messages.", MSGCH_DGL_MESSAGE);
}
void check_messages()