mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-29 05:26:19 +01:00
Merge pull request #42 from MCAU/master
Don't attempt to send empty messages
This commit is contained in:
commit
6c19231c1a
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,3 +1,6 @@
|
||||
/target/
|
||||
/nbactions.xml
|
||||
/dependency-reduced-pom
|
||||
/dependency-reduced-pom.xml
|
||||
|
||||
/.idea/
|
||||
/*.iml
|
@ -80,7 +80,7 @@ public class IRCMessageQueueWatcher {
|
||||
}
|
||||
|
||||
private void blockingIRCMessage(final String target, final String message) {
|
||||
if (!ircBot.isConnected()) {
|
||||
if (!ircBot.isConnected() || message.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
plugin.logDebug("[blockingIRCMessage] About to send IRC message to " + target + ": " + message);
|
||||
@ -89,7 +89,7 @@ public class IRCMessageQueueWatcher {
|
||||
}
|
||||
|
||||
private void blockingCTCPMessage(final String target, final String message) {
|
||||
if (!ircBot.isConnected()) {
|
||||
if (!ircBot.isConnected() || message.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
plugin.logDebug("[blockingCTCPMessage] About to send IRC message to " + target + ": " + message);
|
||||
@ -98,7 +98,7 @@ public class IRCMessageQueueWatcher {
|
||||
}
|
||||
|
||||
private void blockingNoticeMessage(final String target, final String message) {
|
||||
if (!ircBot.isConnected()) {
|
||||
if (!ircBot.isConnected() || message.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
plugin.logDebug("[blockingNoticeMessage] About to send IRC notice to " + target + ": " + message);
|
||||
|
Loading…
Reference in New Issue
Block a user