diff options
| author | George Hazan <ghazan@miranda.im> | 2019-12-04 16:08:03 +0300 | 
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2019-12-04 16:08:03 +0300 | 
| commit | 3bb16e798cb51d5764aacbefd4edf26f52d8c4f0 (patch) | |
| tree | 59dbb53fc9496d660ec2ef2846a4eab0f1720b88 /protocols/GmailNotifier/src | |
| parent | 3216d8df5cb355f34c82ed10b7e40bab7525b697 (diff) | |
GetContactProto: useless duplicate function replaced with standard Proto_GetBaseAccountName
Diffstat (limited to 'protocols/GmailNotifier/src')
| -rw-r--r-- | protocols/GmailNotifier/src/check.cpp | 2 | ||||
| -rw-r--r-- | protocols/GmailNotifier/src/notify.cpp | 2 | 
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/GmailNotifier/src/check.cpp b/protocols/GmailNotifier/src/check.cpp index d9386b191b..8013b560e7 100644 --- a/protocols/GmailNotifier/src/check.cpp +++ b/protocols/GmailNotifier/src/check.cpp @@ -135,7 +135,7 @@ void __cdecl Check_ThreadFunc(void *lpParam)  	}  	else {  		for (auto &it : g_accs) { -			if (GetContactProto(it->hContact)) { +			if (Proto_GetBaseAccountName(it->hContact)) {  				CheckMailInbox(it);  				NotifyUser(it);  			} diff --git a/protocols/GmailNotifier/src/notify.cpp b/protocols/GmailNotifier/src/notify.cpp index 232614a7f8..2413c58023 100644 --- a/protocols/GmailNotifier/src/notify.cpp +++ b/protocols/GmailNotifier/src/notify.cpp @@ -69,7 +69,7 @@ static void __cdecl Login_ThreadFunc(Account *curAcc)  int OpenBrowser(WPARAM hContact, LPARAM)  { -	char *proto = GetContactProto(hContact); +	char *proto = Proto_GetBaseAccountName(hContact);  	if (proto && !mir_strcmp(proto, MODULENAME)) {  		Account *curAcc = GetAccountByContact(hContact);  		PUDeletePopup(curAcc->popUpHwnd);  | 
