mood.c: Only print log message if we are actually reloading a mood.
authorAndre Noll <maan@systemlinux.org>
Fri, 28 Dec 2007 12:59:46 +0000 (13:59 +0100)
committerAndre Noll <maan@systemlinux.org>
Fri, 28 Dec 2007 12:59:46 +0000 (13:59 +0100)
mood.c

diff --git a/mood.c b/mood.c
index 9ddfc58..5908a93 100644 (file)
--- 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();