Skip to content

Commit cc55da4

Browse files
committed
Fixed crash if alias run at program startup
1 parent a67d203 commit cc55da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evaluate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ bool CMUSHclientDoc::ProcessOneAliasSequence (const CString strCurrentLine,
883883
// a Lua script which does outputting, failing because during outputting it
884884
// terminated the previous line in the middle of a script.
885885

886-
if ((m_pCurrentLine->flags & NOTE_OR_COMMAND) != COMMENT)
886+
if (m_pCurrentLine && (m_pCurrentLine->flags & NOTE_OR_COMMAND) != COMMENT)
887887
DisplayMsg ("", 0, COMMENT);
888888

889889
// echo the alias they typed, unless command echo off, or previously displayed

0 commit comments

Comments
 (0)