From 0278d786a9da0fff6abe885a6eba150d8743cd90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Thu, 28 Sep 2017 18:07:26 +0200 Subject: [PATCH] Gets the hash of the sender. --- src/channel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/channel.cpp b/src/channel.cpp index fa46d07..0f6ae75 100644 --- a/src/channel.cpp +++ b/src/channel.cpp @@ -90,7 +90,10 @@ struct message *NeoComm_get_next_message(const char *channel_name) { *msg = { /*.msg =*/ new_msg->msg.c_str(), /*.sent =*/ new_msg->date, - // TODO: add the rest of these + /*.from =*/ { + /*.nick =*/ "DEFAULT", // TODO: Implement this!!! + /*.hash =*/ new_msg->from.to_c_str() + } }; return msg;