Skip to content

Commit e3a9650

Browse files
committed
If current line is being omitted, GetInfo (124) will return true
1 parent f575af7 commit e3a9650

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

ProcessPreviousLine.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -452,13 +452,13 @@ assemble the full text of the original line.
452452

453453
// triggers might set these
454454
bool bNoLog = !m_bLogOutput;
455-
bool bNoOutput = false;
455+
bool m_bLineOmittedFromOutput = false;
456456
bool bChangedColour = false;
457457

458458
m_iCurrentActionSource = eInputFromServer;
459459

460460
if (!SendToAllPluginCallbacks (ON_PLUGIN_LINE_RECEIVED, strCurrentLine))
461-
bNoOutput = true;
461+
m_bLineOmittedFromOutput = true;
462462

463463
m_iCurrentActionSource = eUnknownActionSource;
464464

@@ -607,7 +607,7 @@ assemble the full text of the original line.
607607
strResponse,
608608
prevpos,
609609
bNoLog,
610-
bNoOutput,
610+
m_bLineOmittedFromOutput,
611611
bChangedColour,
612612
triggerList,
613613
strExtraOutput,
@@ -626,7 +626,7 @@ assemble the full text of the original line.
626626
strResponse,
627627
prevpos,
628628
bNoLog,
629-
bNoOutput,
629+
m_bLineOmittedFromOutput,
630630
bChangedColour,
631631
triggerList,
632632
strExtraOutput,
@@ -652,7 +652,7 @@ assemble the full text of the original line.
652652
strResponse,
653653
prevpos,
654654
bNoLog,
655-
bNoOutput,
655+
m_bLineOmittedFromOutput,
656656
bChangedColour,
657657
triggerList,
658658
strExtraOutput,
@@ -665,7 +665,7 @@ assemble the full text of the original line.
665665

666666
// if we have changed the colour of this trigger, or omitted it from output,
667667
// we must force an update or they won't see it
668-
if (bNoOutput || bChangedColour)
668+
if (m_bLineOmittedFromOutput || bChangedColour)
669669
{
670670
// notify view to update their selection ranges
671671

@@ -735,7 +735,7 @@ assemble the full text of the original line.
735735

736736
// if omitting from output do that now
737737

738-
if (bNoOutput)
738+
if (m_bLineOmittedFromOutput)
739739
{
740740

741741
// delete all lines in this set
@@ -984,7 +984,7 @@ assemble the full text of the original line.
984984
// check memory still OK
985985
// _ASSERTE( _CrtCheckMemory( ) );
986986

987-
return bNoOutput;
987+
return m_bLineOmittedFromOutput;
988988

989989
} // end of CMUSHclientDoc::ProcessPreviousLine
990990

doc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,6 +1374,7 @@ class CMUSHclientDoc : public CDocument
13741374
list<CPaneStyle> m_OutstandingLines;
13751375
bool m_bNotesNotWantedNow;
13761376
bool m_bDoingSimulate;
1377+
bool m_bLineOmittedFromOutput;
13771378

13781379
BOOL m_bScrollBarWanted; // true if we want to see scroll bars
13791380

doc_construct.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ int i;
207207
m_bVariablesChanged = false;
208208
m_bNotesNotWantedNow = false;
209209
m_bDoingSimulate = false;
210+
m_bLineOmittedFromOutput = false;
210211

211212
m_view_number = 0;
212213
m_LastFlushTime = CTime::GetCurrentTime();

scripting/methods/methods_info.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ VARIANT CMUSHclientDoc::GetInfo(long InfoType)
580580
case 121: SetUpVariantBool (vaResult, App.m_iCounterFrequency != 0); break;
581581
case 122: SetUpVariantBool (vaResult, sqlite3_threadsafe() != 0); break;
582582
case 123: SetUpVariantBool (vaResult, m_bDoingSimulate); break;
583+
case 124: SetUpVariantBool (vaResult, m_bLineOmittedFromOutput); break;
583584

584585
case 201: SetUpVariantLong (vaResult, m_total_lines); break;
585586
case 202: SetUpVariantLong (vaResult, m_new_lines); break;

0 commit comments

Comments
 (0)