Official eMule-Board: Fix For New Message Log Entry - Official eMule-Board

Jump to content


Page 1 of 1

Fix For New Message Log Entry

#1 User is offline   Avi-3k 

  • hebMule [retired] dev
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,127
  • Joined: 25-June 03

Posted 17 August 2005 - 10:53 AM

i've noticed that eMule adds a log entry for
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()));
...


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
}
...



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
retired developer of hebMule and eMule Skinner...
hebMule site and topic.
hebMule2 unique features: AntiLeech, AntiVirus, Fake Check, ServerFilter, WebSearches, Export Searches, Relative Priority, ModID and much much more...

eMule Skinner is an application to create/edit skins for eMule,
it's multilingual, supports mods, easy-to-use design, integrates to hebMule & Windows and lots more...

code fixes/improvements: #1, #2, #3, #4, #5, #6, #7, #8, #9, #10, #11 (to check/verify: #12, #13).
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users