From 78c0815c4118fe24ab78cce2dc48a6232dcd824a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 2 Jun 2012 20:55:18 +0000 Subject: - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Yahoo/im.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'protocols/Yahoo/im.cpp') diff --git a/protocols/Yahoo/im.cpp b/protocols/Yahoo/im.cpp index 455a545b74..03360e2374 100644 --- a/protocols/Yahoo/im.cpp +++ b/protocols/Yahoo/im.cpp @@ -50,7 +50,7 @@ void CYahooProto::ext_got_im(const char *me, const char *who, int protocol, cons return; } - if(!msg) { + if (!msg) { LOG(("Empty Incoming Message, exiting.")); return; } @@ -80,15 +80,15 @@ void CYahooProto::ext_got_im(const char *me, const char *who, int protocol, cons // strip the fade tag !_strnicmp(c, "",7) || // strip the alternate colors tag - !_strnicmp(c, "",6)){ + !_strnicmp(c, "",6)) { while ((*c++ != '>') && (*c != '\0')); } else // strip ANSI color combination - if ((*c == 0x1b) && (*(c+1) == '[')){ + if ((*c == 0x1b) && (*(c+1) == '[')) { while ((*c++ != 'm') && (*c != '\0')); } else - if (*c != '\0'){ + if (*c != '\0') { umsg[oidx++] = *c; /* Adding \r to \r\n conversion */ @@ -104,7 +104,7 @@ void CYahooProto::ext_got_im(const char *me, const char *who, int protocol, cons /* Need to strip off formatting stuff first. Then do all decoding/converting */ LOG(("%s: %s", who, umsg)); - //if(!strcmp(umsg, "")) + //if (!strcmp(umsg, "")) // :P("\a"); ccs.szProtoService = PSR_MESSAGE; @@ -236,7 +236,7 @@ int __cdecl CYahooProto::RecvMsg( HANDLE hContact, PROTORECVEVENT* pre ) DBDeleteContactSetting(hContact, "CList", "Hidden"); // NUDGES - if( !lstrcmpA(pre->szMessage, "") && ServiceExists("NUDGE/Send")){ + if ( !lstrcmpA(pre->szMessage, "") && ServiceExists("NUDGE/Send")) { DebugLog("[YahooRecvMessage] Doing Nudge Service!"); NotifyEventHooks(hYahooNudge, (WPARAM)hContact, pre->timestamp); return 0; -- cgit v1.2.3