Log enabled capabilities

This commit is contained in:
Pavel Djundik 2016-04-24 11:14:06 +03:00
parent 8c41975dd7
commit 2d8f4fdf14

View File

@ -182,6 +182,12 @@ Client.prototype.connect = function(args) {
}); });
network.irc.on("registered", function() { 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 delay = 1000;
var commands = args.commands; var commands = args.commands;
if (Array.isArray(commands)) { if (Array.isArray(commands)) {