Merge pull request #2188 from thelounge/xpaw/no-blind-playback-cap
Only request znc.in/playback if sqlite logging is enabled
This commit is contained in:
commit
f2fb27f6a4
@ -270,10 +270,15 @@ Client.prototype.connect = function(args) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
network.irc.requestCap([
|
network.irc.requestCap([
|
||||||
"znc.in/self-message", // Legacy echo-message for ZNc
|
"znc.in/self-message", // Legacy echo-message for ZNC
|
||||||
"znc.in/playback", // http://wiki.znc.in/Playback
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
// Request only new messages from ZNC if we have sqlite logging enabled
|
||||||
|
// See http://wiki.znc.in/Playback
|
||||||
|
if (client.config.log && Helper.config.messageStorage.includes("sqlite")) {
|
||||||
|
network.irc.requestCap("znc.in/playback");
|
||||||
|
}
|
||||||
|
|
||||||
events.forEach((plugin) => {
|
events.forEach((plugin) => {
|
||||||
require(`./plugins/irc-events/${plugin}`).apply(client, [
|
require(`./plugins/irc-events/${plugin}`).apply(client, [
|
||||||
network.irc,
|
network.irc,
|
||||||
|
Loading…
Reference in New Issue
Block a user