File tree Expand file tree Collapse file tree 5 files changed +18
-0
lines changed Expand file tree Collapse file tree 5 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -536,6 +536,7 @@ assemble the full text of the original line.
536
536
537
537
538
538
m_sRecentLines.push_back ((const char *) strCurrentLine);
539
+ m_newlines_received++;
539
540
540
541
// too many? remove oldest one
541
542
if (m_sRecentLines.size () > MAX_RECENT_LINES)
Original file line number Diff line number Diff line change @@ -6635,6 +6635,8 @@ void CMUSHclientDoc::ConnectionEstablished (void)
6635
6635
m_iTimersFiredThisSessionCount = 0 ;
6636
6636
m_bSuppressNewline = false ;
6637
6637
m_iLastCommandCount = 0 ;
6638
+ m_sRecentLines.clear ();
6639
+ m_newlines_received = 0 ;
6638
6640
m_strLastCommandSent.Empty (); // no command sent yet
6639
6641
m_iNoteStyle = NORMAL; // back to default style
6640
6642
Original file line number Diff line number Diff line change @@ -988,6 +988,7 @@ class CMUSHclientDoc : public CDocument
988
988
989
989
long m_total_lines;
990
990
long m_new_lines; // lines they haven't read yet (if not active view)
991
+ long m_newlines_received; // lines pushed into m_sRecentLines
991
992
long m_nTotalLinesSent; // lines sent this connection
992
993
long m_nTotalLinesReceived; // lines they received this connection
993
994
long m_last_line_with_IAC_GA;
Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ int i;
196
196
m_InputFontHeight = 0 ;
197
197
m_InputFontWidth = 0 ;
198
198
m_total_lines = 0 ;
199
+ m_newlines_received = 0 ;
199
200
m_last_line_with_IAC_GA = 0 ;
200
201
m_nTotalLinesSent = 0 ;
201
202
m_nTotalLinesReceived = 0 ;
Original file line number Diff line number Diff line change @@ -328,6 +328,11 @@ tInfoTypeMapping InfoTypes [] =
328
328
{ 306 , " When this world was created/opened" },
329
329
330
330
331
+ // more numbers
332
+
333
+ { 310 , " Newlines received" },
334
+
335
+
331
336
{ 0 , " " }, // end of table marker
332
337
333
338
};
@@ -1044,6 +1049,8 @@ VARIANT CMUSHclientDoc::GetInfo(long InfoType)
1044
1049
break ;
1045
1050
1046
1051
1052
+ // dates
1053
+
1047
1054
case 301 :
1048
1055
if (m_tConnectTime.GetTime ()) // only if non-zero, otherwise return empty
1049
1056
SetUpVariantDate (vaResult, COleDateTime (m_tConnectTime.GetTime ()));
@@ -1069,6 +1076,12 @@ VARIANT CMUSHclientDoc::GetInfo(long InfoType)
1069
1076
SetUpVariantDate (vaResult, COleDateTime (m_whenWorldStarted.GetTime ()));
1070
1077
break ;
1071
1078
1079
+ // more numbers
1080
+
1081
+ case 310 :
1082
+ SetUpVariantLong (vaResult, m_newlines_received); // newlines received
1083
+ break ;
1084
+
1072
1085
default :
1073
1086
vaResult.vt = VT_NULL;
1074
1087
break ;
You can’t perform that action at this time.
0 commit comments