mirror of
https://github.com/thelounge/thelounge
synced 2024-11-27 14:30:57 +00:00
Merge pull request #272 from thelounge/xpaw/log-caps
Log enabled capabilities
This commit is contained in:
commit
149a1991e2
1 changed files with 6 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue