new messages even if they are filtered
(that depends on where they are filtered in the code)
this fixes the log entry to only be shown if
we actually get a message in message win.
remove (line 780)
Quote
...
case OP_MESSAGE:
...
AddLogLine(true, GetResString(IDS_NEWMSG), client->GetUserName(), ipstr(client->GetConnectIP()));
...
case OP_MESSAGE:
...
AddLogLine(true, GetResString(IDS_NEWMSG), client->GetUserName(), ipstr(client->GetConnectIP()));
...
and add it to (line ~279)
Quote
...
void CChatSelector::ProcessMessage(CUpDownClient* sender, const CString& message) {
...
AddLogLine(true, GetResString(IDS_NEWMSG), sender->GetUserName(), ipstr(sender->GetConnectIP())); // Avi3k: newmsg log fix
}
...
void CChatSelector::ProcessMessage(CUpDownClient* sender, const CString& message) {
...
AddLogLine(true, GetResString(IDS_NEWMSG), sender->GetUserName(), ipstr(sender->GetConnectIP())); // Avi3k: newmsg log fix
}
...
btw, a different fix is to change CChatSelector::ProcessMessage()
to return a bool value and according to the value returned,
print the right message in ListenSocket.cpp
Avi3k