From 1714e2b80218ef5d7e0275a93f8c2dd9b1809861 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 28 Dec 2007 13:59:46 +0100 Subject: [PATCH] mood.c: Only print log message if we are actually reloading a mood. --- mood.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mood.c b/mood.c index 9ddfc588..5908a93d 100644 --- a/mood.c +++ b/mood.c @@ -1013,9 +1013,10 @@ int reload_current_mood(void) int ret; char *mood_name = NULL; - PARA_NOTICE_LOG("reloading current mood\n"); if (!current_mood) return 1; + PARA_NOTICE_LOG("reloading %s\n", current_mood->name? + current_mood->name : "(dummy)"); if (current_mood->name) mood_name = para_strdup(current_mood->name); close_current_mood(); -- 2.39.2