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",
"description": "A web IRC client",
"version": "0.17.1",
"version": "0.18.0",
"author": "Mattias Erming",
"preferGlobal": true,
"bin": {

View File

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