@@ -152,22 +152,6 @@ bool bWasClosed = m_pDoc->m_iConnectPhase == eConnectNotConnected;
152
152
m_pDoc->StartNewLine (true , 0 );
153
153
} // end of message in world window wanted
154
154
155
- CString str;
156
-
157
- str = TFormat (" The \" %s\" server has closed the connection" ,
158
- (const char *) m_pDoc->m_mush_name );
159
-
160
- if (App.m_bNotifyOnDisconnect && !m_pDoc->m_bDisconnectOK )
161
- {
162
- if (App.m_bErrorNotificationToOutputWindow )
163
- m_pDoc->Note (str);
164
- else
165
- ::UMessageBox (str, MB_ICONEXCLAMATION);
166
- }
167
- else
168
- Frame.SetStatusMessage (str);
169
- m_pDoc->m_iConnectPhase = eConnectNotConnected;
170
-
171
155
CString strInfo = TFormat (" Received %i line%s, sent %i line%s." ,
172
156
PLURAL (m_pDoc->m_nTotalLinesReceived ),
173
157
PLURAL (m_pDoc->m_nTotalLinesSent )
@@ -190,6 +174,21 @@ CString str;
190
174
191
175
m_pDoc->Note (strInfo);
192
176
177
+ CString str;
178
+
179
+ str = TFormat (" The \" %s\" server has closed the connection" ,
180
+ (const char *) m_pDoc->m_mush_name );
181
+
182
+ if (App.m_bNotifyOnDisconnect && !m_pDoc->m_bDisconnectOK )
183
+ {
184
+ if (App.m_bErrorNotificationToOutputWindow )
185
+ m_pDoc->Note (str);
186
+ else
187
+ ::UMessageBox (str, MB_ICONEXCLAMATION);
188
+ }
189
+ else
190
+ Frame.SetStatusMessage (str);
191
+ m_pDoc->m_iConnectPhase = eConnectNotConnected;
193
192
194
193
} // end of OnClose
195
194
0 commit comments