Commit cc0b5e9d authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Couple of MSN tweaks.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk/src/plugins/gateway@4898 b35dd754-fafc-0310-a699-88a17e54d16e
parent 564df79c
...@@ -47,12 +47,12 @@ public class MSNListener extends MsnAdapter { ...@@ -47,12 +47,12 @@ public class MSNListener extends MsnAdapter {
* Handles incoming messages from MSN. * Handles incoming messages from MSN.
*/ */
public void instantMessageReceived(MsnSwitchboard switchboard, MsnInstantMessage message, MsnContact friend) { public void instantMessageReceived(MsnSwitchboard switchboard, MsnInstantMessage message, MsnContact friend) {
Log.debug("MSN: Received im to " + switchboard + " from " + friend + ": " + message.toString()); Log.debug("MSN: Received im to " + switchboard + " from " + friend + ": " + message.getContent());
Message m = new Message(); Message m = new Message();
m.setType(Message.Type.chat); m.setType(Message.Type.chat);
m.setTo(msnSession.getJIDWithHighestPriority()); m.setTo(msnSession.getJIDWithHighestPriority());
m.setFrom(msnSession.getTransport().convertIDToJID(friend.getEmail().toString())); m.setFrom(msnSession.getTransport().convertIDToJID(friend.getEmail().toString()));
m.setBody(message.toString()); m.setBody(message.getContent());
msnSession.getTransport().sendPacket(m); msnSession.getTransport().sendPacket(m);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment