mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
Hide ctcp messages
This commit is contained in:
parent
6763be43c0
commit
35f6f1a677
2 changed files with 6 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "shout",
|
||||
"description": "The self-hosted web IRC client",
|
||||
"version": "0.37.2",
|
||||
"version": "0.37.3",
|
||||
"author": "Mattias Erming",
|
||||
"preferGlobal": true,
|
||||
"bin": {
|
||||
|
|
|
@ -5,6 +5,11 @@ var Msg = require("../../models/msg");
|
|||
module.exports = function(irc, network) {
|
||||
var client = this;
|
||||
irc.on("message", function(data) {
|
||||
if (data.message.indexOf("\001") === 0) {
|
||||
// Hide ctcp messages.
|
||||
return;
|
||||
}
|
||||
|
||||
var target = data.to;
|
||||
if (target.toLowerCase() == irc.me.toLowerCase()) {
|
||||
target = data.from;
|
||||
|
|
Loading…
Reference in a new issue