mirror of
https://github.com/thelounge/thelounge
synced 2025-02-17 05:38:25 +00:00
- Synchornize unread counter with the server - Fix unread marker on no attached clients - Increase unread counter for server messages
20 lines
442 B
JavaScript
20 lines
442 B
JavaScript
"use strict";
|
|
|
|
var Msg = require("../../models/msg");
|
|
|
|
module.exports = function(irc, network) {
|
|
var client = this;
|
|
|
|
irc.on("unknown command", function(command) {
|
|
// Do not display users own name
|
|
if (command.params[0] === network.irc.user.nick) {
|
|
command.params.shift();
|
|
}
|
|
|
|
network.channels[0].pushMessage(client, new Msg({
|
|
type: Msg.Type.UNHANDLED,
|
|
command: command.command,
|
|
params: command.params
|
|
}), true);
|
|
});
|
|
};
|