Hide ctcp messages
This commit is contained in:
parent
6763be43c0
commit
35f6f1a677
|
@ -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 New Issue