aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/msg.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/msg.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/msg.c b/src/msg.c
index ba6c474..b87052c 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -190,3 +190,11 @@ void msg_free(const struct msg *msg)
free(msg->argv[i]);
free(msg->argv);
}
+
+int msg_dump_unknown(const struct msg *msg)
+{
+ print_log("Received an unknown message:\n");
+ for (int i = 0; i < msg->argc; ++i)
+ print_log("\t%s\n", msg->argv[i]);
+ return -1;
+}