Commit 596c7856 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Little oops with string handling.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@7490 b35dd754-fafc-0310-a699-88a17e54d16e
parent 23541659
......@@ -42,7 +42,7 @@ public class MsnSessionListener extends SessionAdapter {
public void messageReceived(Session arg0, Message message) throws Exception {
Log.debug("MSN: Session messageReceived for "+msnSession.getRegistration().getUsername()+" : "+message);
// TODO: Kinda hacky, would like to improve on this later.
if (message.equals("OUT OTH")) {
if (message.toString().startsWith("OUT OTH")) {
// Forced disconnect because account logged in elsewhere
msnSession.getTransport().sendMessage(
msnSession.getJIDWithHighestPriority(),
......@@ -52,7 +52,7 @@ public class MsnSessionListener extends SessionAdapter {
);
msnSession.logOut();
}
else if (message.equals("OUT SDH")) {
else if (message.toString().startsWith("OUT SDH")) {
// Forced disconnect from server for maintenance
msnSession.getTransport().sendMessage(
msnSession.getJIDWithHighestPriority(),
......
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