projects
/
xudocci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Log message if we failed to join a channel we didn’t try to join in the first place.
[xudocci.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
xdcc
/
core
/
Core.java
diff --git
a/src/main/java/net/pterodactylus/xdcc/core/Core.java
b/src/main/java/net/pterodactylus/xdcc/core/Core.java
index
5bcccf3
..
8670924
100644
(file)
--- a/
src/main/java/net/pterodactylus/xdcc/core/Core.java
+++ b/
src/main/java/net/pterodactylus/xdcc/core/Core.java
@@
-557,6
+557,12
@@
public class Core extends AbstractExecutionThreadService {
return;
}
return;
}
+ Optional<Channel> channel = getChannel(network.get(), channelNotJoined.channel());
+ if (!channel.isPresent()) {
+ eventBus.post(new GenericMessage(format("Could not join %s but didn’t try to join, either.", channel.get())));
+ return;
+ }
+
if (channelNotJoined.reason() == registeredNicknamesOnly) {
Optional<Channel> channel = getChannel(network.get(), channelNotJoined.channel());
if (channel.isPresent()) {
if (channelNotJoined.reason() == registeredNicknamesOnly) {
Optional<Channel> channel = getChannel(network.get(), channelNotJoined.channel());
if (channel.isPresent()) {