Fix query windows
This commit is contained in:
parent
74d0765e00
commit
43e74d2908
@ -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": {
|
||||||
|
@ -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);
|
||||||
irc.emit("message", {
|
var channel = _.find(network.channels, {name: target});
|
||||||
from: irc.me,
|
if (typeof channel !== "undefined") {
|
||||||
to: target,
|
irc.emit("message", {
|
||||||
message: text
|
from: irc.me,
|
||||||
});
|
to: channel.name,
|
||||||
|
message: text
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user