X-Git-Url: http://git.cascardo.info/?p=cascardo%2Ff2fchat.git;a=blobdiff_plain;f=message.c;fp=message.c;h=8e3202daadb70442c44360a579487490deeb0116;hp=4104cfff741157e922566fe02de6c56c3f1b9d73;hb=aa85a008c148b2ebe4a4a622b9ea77b40f798123;hpb=81f0d4d94ef5234eeb647831b8846a2438bb0f74 diff --git a/message.c b/message.c index 4104cff..8e3202d 100644 --- a/message.c +++ b/message.c @@ -55,8 +55,12 @@ gboolean message_incoming(GIOChannel *channel, GIOCondition cond, gpointer data) } else { struct friend *friend; friend = friend_get_by_address(iaddress); - if (friend) + if (friend) { + printf("got message from %s\n", friend_get_name(friend)); g_source_remove_by_user_data(friend); + } else { + printf("could not find friend from address %s\n", g_inet_address_to_string(iaddress)); + } } g_object_unref(address); g_free(buffer);