[ADC] MSGs containing the field ME are not displayed properly

Bug #180321 reported by Fredrik Ullner
2
Affects Status Importance Assigned to Milestone
DC++
Fix Released
Low
Unassigned

Bug Description

When sending a MSG in an ADC hub that contain the ME field (for "* user says"), DC++ does not properly parse and display it.

Fredrik Ullner (ullner)
Changed in dcplusplus:
importance: Undecided → Low
Revision history for this message
poy (poy) wrote :

*untested* patch that adds a bool in the Message and PrivateMessage listeners.

Revision history for this message
poy (poy) wrote :

same patch, but adds a space after the star. tested.

Revision history for this message
poy (poy) wrote :

this patch includes the previous patch and adds parsing of "/me <msg>" for ADC hubs, in which the message is stripped from the "/me " part and and an ME flag is added.
this patch also fixes a behavior of the private frame that removes the slash from unknown /commands.

Revision history for this message
Jacek Sieka (arnetheduck) wrote :

I applied patch 2...I think it would be more clean to add a flag to hubMessage instead of parsing in adchub...this way it's the same in both directions...

Changed in dcplusplus:
status: New → In Progress
Revision history for this message
poy (poy) wrote :

yes, it looked weird that the parsing was being done in the core while all other /commands are parsed in the GUI. now, the parsing happens in WinUtil and a bool is dispatched to the hubMessage and privateMessage functions.
note that with this patch, "/me a" in an NMDC hub would send only "a"; the "/me " part will be lost.

Revision history for this message
Jacek Sieka (arnetheduck) wrote :

I readded the /me on nmdc hubs...some clients parse that to rewrite message so we might as well please them...

Changed in dcplusplus:
status: In Progress → Fix Committed
MikeJJ (mrmikejj)
Changed in dcplusplus:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.