Fix query windows
This commit is contained in:
parent
74d0765e00
commit
43e74d2908
@ -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": {
|
||||
|
@ -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
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user