Changeset - 3daa3810774b
[Not reviewed]
0 1 0
HanzZ - 14 years ago 2011-09-11 18:00:25
hanzz.k@gmail.com
Send proper from when buddy is not in roster
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/conversation.cpp
Show inline comments
 
@@ -59,7 +59,11 @@ void Conversation::handleMessage(boost::shared_ptr<Swift::Message> &message, con
 
				message->setFrom(buddy->getJID());
 
			}
 
			else {
 
				// TODO: escape from and setFrom
 
				std::string name = nickname;
 
				if (name.find_last_of("@") != std::string::npos) {
 
					name.replace(name.find_last_of("@"), 1, "%");
 
				}
 
				message->setFrom(name);
 
			}
 
		}
 
		// PM message
0 comments (0 inline, 0 general)