diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-02 16:53:16 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-02 16:53:16 +0000 |
commit | ee283675f4916e09c91c315080b6b4287b5d89d0 (patch) | |
tree | ae538ee52762bbfb20d848d20a3a2e1fa4d23916 /plugins/Scriver/src | |
parent | 64f893af7729925656af436929fdbf19c101afb3 (diff) |
fix for printing grouped messages' timestamp
git-svn-id: http://svn.miranda-ng.org/main/trunk@11218 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r-- | plugins/Scriver/src/msglog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Scriver/src/msglog.cpp b/plugins/Scriver/src/msglog.cpp index 24c78294d7..d67f117092 100644 --- a/plugins/Scriver/src/msglog.cpp +++ b/plugins/Scriver/src/msglog.cpp @@ -23,8 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "commonheaders.h"
-#define MIRANDA_0_5
-
#define LOGICON_MSG_IN 0
#define LOGICON_MSG_OUT 1
#define LOGICON_MSG_NOTICE 2
@@ -40,6 +38,8 @@ static HIMAGELIST g_hImageList; #define STREAMSTAGE_TAIL 2
#define STREAMSTAGE_STOP 3
+#define SMF_AFTERMASK (SMF_SHOWTIME | SMF_GROUPMESSAGES | SMF_MARKFOLLOWUPS)
+
struct EventData
{
int cbSize;
@@ -272,7 +272,7 @@ static int AppendUnicodeOrAnsiiToBufferL(char **buffer, int *cbBufferEnd, int *c d += 6;
}
- for (; *line && (maxLen < 0 || line < maxLine); line++, textCharsCount++) {
+ for (; *line && (maxLen == -1 || line < maxLine); line++, textCharsCount++) {
wasEOL = 0;
if (*line == '\r' && line[1] == '\n') {
CopyMemory(d, "\\line ", 6);
@@ -670,7 +670,7 @@ static char* CreateRTFFromEvent(SrmmWindowData *dat, EventData *evt, struct Glob }
}
- if (gdat->flags & (SMF_SHOWTIME | SMF_GROUPMESSAGES | SMF_MARKFOLLOWUPS) && evt->eventType == EVENTTYPE_MESSAGE && isGroupBreak) {
+ if ((gdat->flags & SMF_AFTERMASK) == SMF_AFTERMASK && evt->eventType == EVENTTYPE_MESSAGE && isGroupBreak) {
AppendToBuffer(&buffer, &bufferEnd, &bufferAlloced, " %s ", SetToStyle(evt->dwFlags & IEEDF_SENT ? MSGFONTID_MYTIME : MSGFONTID_YOURTIME));
AppendUnicodeToBuffer(&buffer, &bufferEnd, &bufferAlloced, TimestampToString(gdat->flags, evt->time, 2));
showColon = 1;
|