summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/message.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/message.cc')
-rw-r--r--crawl-ref/source/message.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/message.cc b/crawl-ref/source/message.cc
index 76234468e6..b0a1e98159 100644
--- a/crawl-ref/source/message.cc
+++ b/crawl-ref/source/message.cc
@@ -354,7 +354,8 @@ void mprf( int channel, const char *format, ... )
{
va_list argp;
va_start( argp, format );
- do_message_print( channel, 0, format, argp );
+ do_message_print( channel, channel == MSGCH_GOD? you.religion : 0,
+ format, argp );
va_end( argp );
}