}
eventBus.post(new GenericMessage(
- format("Could not join %s/%s: %s", channelNotJoined.channel(),
- network.get(), channelNotJoined.reason())));
+ format("Could not join %s: %s", channelNotJoined.channel(),
+ channelNotJoined.reason())));
}
/**
channels.remove(channel.get());
}
eventBus.post(new GenericMessage(format(
- "Kicked from %s/%s by %s: %s",
- kickedFromChannel.channel(), network.get(),
+ "Kicked from %s by %s: %s",
+ kickedFromChannel.channel(),
kickedFromChannel.kicker(),
kickedFromChannel.reason().or("<unknown>")
)));
package net.pterodactylus.xdcc.data;
+import static java.lang.String.format;
+
import com.google.common.base.Function;
/**
return network().hashCode() ^ name().hashCode();
}
+ @Override
+ public String toString() {
+ return format("%s/%s", name(), network().name());
+ }
+
}