Fix query windows

This commit is contained in:
Mattias Erming 2014-09-09 13:20:09 -07:00
parent 74d0765e00
commit 43e74d2908
2 changed files with 9 additions and 6 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "shout", "name": "shout",
"description": "A web IRC client", "description": "A web IRC client",
"version": "0.17.1", "version": "0.18.0",
"author": "Mattias Erming", "author": "Mattias Erming",
"preferGlobal": true, "preferGlobal": true,
"bin": { "bin": {

View File

@ -21,9 +21,12 @@ module.exports = function(network, chan, cmd, args) {
} }
var text = args.join(" "); var text = args.join(" ");
irc.send(target, text); irc.send(target, text);
var channel = _.find(network.channels, {name: target});
if (typeof channel !== "undefined") {
irc.emit("message", { irc.emit("message", {
from: irc.me, from: irc.me,
to: target, to: channel.name,
message: text message: text
}); });
}
}; };