mirror of
https://github.com/nikdoof/bukkitxmpp.git
synced 2026-01-31 10:08:14 +00:00
Fix various small issues with the last fix
This commit is contained in:
@@ -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");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user