diff options
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r-- | src/command/cmd_funcs.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 74bbc5e0..5e6b3cc2 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -9645,3 +9645,18 @@ cmd_register(ProfWin* window, const char* const command, gchar** args) log_info("we are leaving the registration process"); return TRUE; } + +gboolean +cmd_mood(ProfWin* window, const char* const command, gchar** args) +{ + + if (g_strcmp0(args[0], "set") == 0) { + cons_show("Your mood: %s", args[1]); + if (args[2]) { + publish_user_mood(args[1], args[2]); + } else { + publish_user_mood(args[1], args[1]); + } + } + return TRUE; +} |