From 5c76324b781e3c161c88df4a05e9fe759c17c7f8 Mon Sep 17 00:00:00 2001 From: mjentsch Date: Sat, 17 Oct 2015 00:00:25 +0200 Subject: [PATCH] cleanup --- telegram-purple.c | 3 +-- tgp-chat.c | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/telegram-purple.c b/telegram-purple.c index 4541232..5782a93 100644 --- a/telegram-purple.c +++ b/telegram-purple.c @@ -738,8 +738,7 @@ static int tgprpl_send_chat (PurpleConnection * gc, int id, const char *message, connection_data *conn = purple_connection_get_protocol_data (gc); int ret = tgp_msg_send (conn->TLS, message, TGL_MK_CHAT(id)); if (ret != 0) { - p2tgl_got_chat_in (conn->TLS, TGL_MK_CHAT(id), conn->TLS->our_id, message, - PURPLE_MESSAGE_RECV, time(NULL)); + p2tgl_got_chat_in (conn->TLS, TGL_MK_CHAT(id), conn->TLS->our_id, message, PURPLE_MESSAGE_RECV, time (NULL)); } return ret; } diff --git a/tgp-chat.c b/tgp-chat.c index 5fe2fd5..d1faa33 100644 --- a/tgp-chat.c +++ b/tgp-chat.c @@ -142,7 +142,6 @@ GHashTable *tgprpl_chat_info_defaults (PurpleConnection *gc, const char *chat_na debug ("tgprpl_chat_info_defaults()"); connection_data *conn = purple_connection_get_protocol_data (gc); - if (chat_name) { tgl_peer_t *P = tgl_peer_get_by_name (conn->TLS, chat_name); if (P) {