From 6be9b9c1dd00da5ecd33cbc20ece4162ba56c402 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 19 Jul 2014 14:11:25 +0000 Subject: db_mc_tryMeta applied git-svn-id: http://svn.miranda-ng.org/main/trunk@9860 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Scriver/src/msgs.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/Scriver/src/msgs.cpp') diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index 5e4a5d7cfd..5ae4dc4a2c 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -141,8 +141,7 @@ static int MessageEventAdded(WPARAM hContact, LPARAM lParam) static INT_PTR SendMessageCommandWorker(MCONTACT hContact, LPCSTR pszMsg, bool isWchar) { - if (db_mc_isSub(hContact)) - hContact = db_mc_getMeta(hContact); + hContact = db_mc_tryMeta(hContact); /* does the MCONTACT's protocol support IM messages? */ char *szProto = GetContactProto(hContact); @@ -200,8 +199,7 @@ static int TypingMessage(WPARAM hContact, LPARAM lParam) if (!(g_dat.flags2 & SMF2_SHOWTYPING)) return 0; - if (db_mc_isSub(hContact)) - hContact = db_mc_getMeta(hContact); + hContact = db_mc_tryMeta(hContact); SkinPlaySound((lParam) ? "TNStart" : "TNStop"); -- cgit v1.2.3