Merge pull request #272 from thelounge/xpaw/log-caps

Log enabled capabilities
This commit is contained in:
Max-P 2016-04-24 17:43:05 -04:00
commit 149a1991e2

View file

@ -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)) {