summaryrefslogtreecommitdiff
path: root/plugins/SeenPlugin
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-21 18:27:51 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-21 18:27:51 +0000
commitb5c35fb3198a06b037e49ac98d456ed55664ac60 (patch)
treef8b59563b2e5ca90d2d7165efea3eebe0a57fc4d /plugins/SeenPlugin
parent4267ebcb5fd90819de23064019d1dd214e76b5ef (diff)
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@5086 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SeenPlugin')
-rw-r--r--plugins/SeenPlugin/src/utils.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/SeenPlugin/src/utils.cpp b/plugins/SeenPlugin/src/utils.cpp
index 0b8d8f3f13..19d1daf1ac 100644
--- a/plugins/SeenPlugin/src/utils.cpp
+++ b/plugins/SeenPlugin/src/utils.cpp
@@ -506,18 +506,18 @@ void myPlaySound(HANDLE hcontact, WORD newStatus, WORD oldStatus)
{
if (CallService(MS_IGNORE_ISIGNORED,(WPARAM)hcontact,IGNOREEVENT_USERONLINE)) return;
//oldStatus and hcontact are not used yet
- char * soundname=0;
- if ((newStatus==ID_STATUS_ONLINE) || (newStatus==ID_STATUS_FREECHAT)) soundname = "LastSeenTrackedStatusOnline";
- else if (newStatus==ID_STATUS_OFFLINE) soundname = "LastSeenTrackedStatusOffline";
- else if (oldStatus==ID_STATUS_OFFLINE) soundname = "LastSeenTrackedStatusFromOffline";
+ char *soundname = NULL;
+ if ((newStatus == ID_STATUS_ONLINE) || (newStatus == ID_STATUS_FREECHAT)) soundname = "LastSeenTrackedStatusOnline";
+ else if (newStatus == ID_STATUS_OFFLINE) soundname = "LastSeenTrackedStatusOffline";
+ else if (oldStatus == ID_STATUS_OFFLINE) soundname = "LastSeenTrackedStatusFromOffline";
else soundname = "LastSeenTrackedStatusChange";
- if (soundname!=0) SkinPlaySound(soundname);
+ if (soundname != NULL)
+ SkinPlaySound(soundname);
}
//will add hContact to queue and will return position;
static logthread_info* addContactToQueue(HANDLE hContact)
{
- int i = 0;
if (!hContact)
return NULL;