summaryrefslogtreecommitdiff
path: root/plugins/SimpleAR/src/Main.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-07-22 23:24:25 +0000
committerRobert Pösel <robyer@seznam.cz>2013-07-22 23:24:25 +0000
commite082885769df09cdf36c2f6b427ae1e759aac123 (patch)
tree58152befab2598b9556fa32467f92b753c9a3e71 /plugins/SimpleAR/src/Main.cpp
parent835fa8439910c957b37502406a31a5e11a2e7eef (diff)
SimpleAR: Use ID_STATUS_* constants instead numbers
git-svn-id: http://svn.miranda-ng.org/main/trunk@5451 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SimpleAR/src/Main.cpp')
-rw-r--r--plugins/SimpleAR/src/Main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SimpleAR/src/Main.cpp b/plugins/SimpleAR/src/Main.cpp
index fa52e56501..1c995f5262 100644
--- a/plugins/SimpleAR/src/Main.cpp
+++ b/plugins/SimpleAR/src/Main.cpp
@@ -115,16 +115,16 @@ INT CheckDefaults(WPARAM, LPARAM)
for (int c=ID_STATUS_ONLINE; c<ID_STATUS_IDLE; c++)
{
mir_snprintf(szStatus,SIZEOF(szStatus),"%d",c);
- if (c == 40072 || c == 40077 || c == 40078)
+ if (c == ID_STATUS_ONLINE || c == ID_STATUS_FREECHAT || c == ID_STATUS_INVISIBLE)
continue;
else
{
if (db_get_ts(NULL,protocolname,szStatus,&dbv))
{
- if (c < 40077)
+ if (c < ID_STATUS_FREECHAT)
// This mode does not have a preset message
ptszDefault=ptszDefaultMsg[c-ID_STATUS_ONLINE-1];
- else if(c > 40078)
+ else if(c > ID_STATUS_INVISIBLE)
ptszDefault=ptszDefaultMsg[c-ID_STATUS_ONLINE-3];
if (ptszDefault)
db_set_ts(NULL,protocolname,szStatus,ptszDefault);
@@ -192,7 +192,7 @@ INT addEvent(WPARAM wParam, LPARAM lParam)
char* pszProto = GetContactProto(hContact);
int status = CallProtoService(pszProto, PS_GETSTATUS, 0, 0);
- if (status == 40072 || status == 40077 || status == 40078)
+ if (status == ID_STATUS_ONLINE || status == ID_STATUS_FREECHAT || status == ID_STATUS_INVISIBLE)
return FALSE;
DBEVENTINFO dbei = {sizeof(dbei)};