Fix issue #208 where actions from other users do not display

This commit is contained in:
David White 2014-10-02 15:25:06 +01:00
parent 260fba6da0
commit 18b41b8516

View File

@ -5,7 +5,7 @@ var Msg = require("../../models/msg");
module.exports = function(irc, network) { module.exports = function(irc, network) {
var client = this; var client = this;
irc.on("message", function(data) { irc.on("message", function(data) {
if (data.message.indexOf("\001") === 0) { if (data.message.indexOf("\u0001") === 0 && !data.message.match(/\u0001ACTION.*\u001/)) {
// Hide ctcp messages. // Hide ctcp messages.
return; return;
} }