From e3cefc7b6ca803e3f87dbadae54a110332778490 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 5 Jul 2012 22:41:06 +0000 Subject: - first of the /Core standard plugins; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@778 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/useronline/useronline.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/modules/useronline') diff --git a/src/modules/useronline/useronline.cpp b/src/modules/useronline/useronline.cpp index 3097db834a..e6f5148f50 100644 --- a/src/modules/useronline/useronline.cpp +++ b/src/modules/useronline/useronline.cpp @@ -22,16 +22,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "..\..\core\commonheaders.h" -static int uniqueEventId=0; +static int uniqueEventId = 0; static int UserOnlineSettingChanged(WPARAM wParam, LPARAM lParam) { - DBCONTACTWRITESETTING *cws=(DBCONTACTWRITESETTING*)lParam; + DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING*)lParam; int newStatus, oldStatus; if ((HANDLE)wParam == NULL || strcmp(cws->szSetting, "Status")) return 0; - newStatus=cws->value.wVal; - oldStatus=DBGetContactSettingWord((HANDLE)wParam, "UserOnline", "OldStatus", ID_STATUS_OFFLINE); + newStatus = cws->value.wVal; + oldStatus = DBGetContactSettingWord((HANDLE)wParam, "UserOnline", "OldStatus", ID_STATUS_OFFLINE); DBWriteContactSettingWord((HANDLE)wParam, "UserOnline", "OldStatus", (WORD)newStatus); if (CallService(MS_IGNORE_ISIGNORED, wParam, IGNOREEVENT_USERONLINE)) return 0; if (DBGetContactSettingByte((HANDLE)wParam, "CList", "Hidden", 0)) return 0; @@ -54,16 +54,16 @@ static int UserOnlineSettingChanged(WPARAM wParam, LPARAM lParam) TCHAR tooltip[256]; ZeroMemory(&cle, sizeof(cle)); - cle.cbSize=sizeof(cle); - cle.flags=CLEF_ONLYAFEW | CLEF_TCHAR; - cle.hContact=(HANDLE)wParam; - cle.hDbEvent=(HANDLE)(uniqueEventId++); + cle.cbSize = sizeof(cle); + cle.flags = CLEF_ONLYAFEW | CLEF_TCHAR; + cle.hContact = (HANDLE)wParam; + cle.hDbEvent = (HANDLE)(uniqueEventId++); cle.hIcon = LoadSkinIcon(SKINICON_OTHER_USERONLINE, false); - cle.pszService="UserOnline/Description"; + cle.pszService = "UserOnline/Description"; mir_sntprintf(tooltip, SIZEOF(tooltip), TranslateT("%s is Online"), cli.pfnGetContactDisplayName((HANDLE)wParam, 0)); - cle.ptszTooltip=tooltip; + cle.ptszTooltip = tooltip; CallService(MS_CLIST_ADDEVENT, 0, (LPARAM)&cle); - IconLib_ReleaseIcon(cle.hIcon, 0); + IcoLib_ReleaseIcon(cle.hIcon, 0); DBWriteContactSettingDword(cle.hContact, "UserOnline", "LastEvent", (DWORD)cle.hDbEvent); SkinPlaySound("UserOnline"); } -- cgit v1.2.3