← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2902: suffix friendly magnets

 

------------------------------------------------------------
revno: 2902
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Mon 2012-04-16 18:37:20 +0200
message:
  suffix friendly magnets
modified:
  dcpp/ChatMessage.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dcpp/ChatMessage.cpp'
--- dcpp/ChatMessage.cpp	2012-03-21 18:58:05 +0000
+++ dcpp/ChatMessage.cpp	2012-04-16 16:37:20 +0000
@@ -148,6 +148,7 @@
 
 				if(!name.empty()) {
 					// magnet link: replace with the friendly name
+					name += " (magnet)";
 					tmp.replace(begin, end - begin, name);
 					end += name.size() - link.size();
 				}