Fix various small issues with the last fix

This commit is contained in:
2011-05-06 11:45:47 +01:00
parent 128e087081
commit 61069546dc

View File

@@ -68,7 +68,7 @@ public class BukkitXMPP extends JavaPlugin implements PacketListener {
xmppconn.connect(); xmppconn.connect();
if (!xmppconn.isConnected()) { if (!xmppconn.isConnected()) {
log.error("Unable to connect to the XMPP server, please check your config!"); log.warning("Unable to connect to the XMPP server, please check your config!");
return; return;
} }
@@ -149,7 +149,12 @@ public class BukkitXMPP extends JavaPlugin implements PacketListener {
public void sendMUCMessage(String msg) { public void sendMUCMessage(String msg) {
if (xmppconn.isConnected() && muc.isJoined()) { if (xmppconn.isConnected() && muc.isJoined()) {
muc.sendMessage(msg); try {
muc.sendMessage(msg);
} catch (Exception e) {
log.warning("Error sending MUC message");
}
} }
} }