mirror of
https://github.com/nikdoof/bukkitxmpp.git
synced 2025-12-14 10:02:16 +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();
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -149,7 +149,12 @@ public class BukkitXMPP extends JavaPlugin implements PacketListener {
|
||||
|
||||
public void sendMUCMessage(String msg) {
|
||||
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