From 2d8f4fdf148ea645255dc46efac5b163a580636c Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sun, 24 Apr 2016 11:14:06 +0300 Subject: [PATCH] Log enabled capabilities --- src/client.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client.js b/src/client.js index a94aa569..fde1cae0 100644 --- a/src/client.js +++ b/src/client.js @@ -182,6 +182,12 @@ Client.prototype.connect = function(args) { }); network.irc.on("registered", function() { + if (network.irc.network.cap.enabled.length > 0) { + network.channels[0].pushMessage(client, new Msg({ + text: "Enabled capabilities: " + network.irc.network.cap.enabled.join(", ") + })); + } + var delay = 1000; var commands = args.commands; if (Array.isArray(commands)) {