diff options
Diffstat (limited to 'src/gnunet_chat_handle_intern.c')
-rw-r--r-- | src/gnunet_chat_handle_intern.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/gnunet_chat_handle_intern.c b/src/gnunet_chat_handle_intern.c index 70e4da4..2200e8e 100644 --- a/src/gnunet_chat_handle_intern.c +++ b/src/gnunet_chat_handle_intern.c | |||
@@ -266,7 +266,8 @@ check_handle_room_members (void* cls, | |||
266 | GNUNET_MESSENGER_contact_get_key(member) | 266 | GNUNET_MESSENGER_contact_get_key(member) |
267 | ); | 267 | ); |
268 | 268 | ||
269 | if ((member_key) && (0 == GNUNET_memcmp(member_key, check->ignore_key))) | 269 | if ((member_key) && (check->ignore_key) && |
270 | (0 == GNUNET_memcmp(member_key, check->ignore_key))) | ||
270 | return GNUNET_YES; | 271 | return GNUNET_YES; |
271 | 272 | ||
272 | if (check->contact) | 273 | if (check->contact) |
@@ -313,15 +314,12 @@ on_handle_identity(void *cls, | |||
313 | GNUNET_assert(handle->messenger); | 314 | GNUNET_assert(handle->messenger); |
314 | context_scan_configs(handle); | 315 | context_scan_configs(handle); |
315 | 316 | ||
316 | if (!handle->msg_cb) | 317 | handle_send_internal_message( |
317 | return; | 318 | handle, |
318 | 319 | NULL, | |
319 | struct GNUNET_CHAT_Message *msg = message_create_internally( | 320 | GNUNET_CHAT_FLAG_LOGIN, |
320 | NULL, GNUNET_CHAT_FLAG_LOGIN, NULL | 321 | NULL |
321 | ); | 322 | ); |
322 | |||
323 | handle->msg_cb(handle->msg_cls, NULL, msg); | ||
324 | message_destroy(msg); | ||
325 | } | 323 | } |
326 | 324 | ||
327 | void | 325 | void |