summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msglog.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-16 16:40:47 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-16 16:40:47 +0000
commit9213250ec9491ae5c8a9a6c389a7678eca8de4b7 (patch)
treed9deb1343c937ab522e0a1d50b41199be504b497 /plugins/TabSRMM/src/msglog.cpp
parent51c5b6906f9571f17a9905d7f1111baa1f2dc126 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@1956 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msglog.cpp')
-rw-r--r--plugins/TabSRMM/src/msglog.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp
index d79de1318d..86760e8bc9 100644
--- a/plugins/TabSRMM/src/msglog.cpp
+++ b/plugins/TabSRMM/src/msglog.cpp
@@ -555,18 +555,17 @@ static char *CreateRTFTail(struct TWindowData *dat)
int TSAPI DbEventIsShown(struct TWindowData *dat, DBEVENTINFO * dbei)
{
- int heFlags;
-
switch (dbei->eventType) {
- case EVENTTYPE_MESSAGE:
- return 1;
- case EVENTTYPE_FILE:
- return(dat->dwFlagsEx & MWF_SHOW_FILEEVENTS);
+ case EVENTTYPE_MESSAGE:
+ return 1;
+ case EVENTTYPE_FILE:
+ return(dat->dwFlagsEx & MWF_SHOW_FILEEVENTS);
}
+
if (IsStatusEvent(dbei->eventType))
return 1;
- heFlags = HistoryEvents_GetFlags(dbei->eventType);
+ int heFlags = HistoryEvents_GetFlags(dbei->eventType);
if (heFlags != -1)
return (heFlags & HISTORYEVENTS_FLAG_SHOW_IM_SRMM) == HISTORYEVENTS_FLAG_SHOW_IM_SRMM;