Fix multiple query windows

This commit is contained in:
Mattias Erming 2014-09-11 11:05:33 -07:00
parent 666f21cd66
commit 815ed887f4
3 changed files with 6 additions and 6 deletions

View File

@ -143,14 +143,14 @@
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<label class="opt"> <label class="opt">
<input type="checkbox" name="nick"> <input type="checkbox" name="part">
Show nick changes Show parts
</label> </label>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<label class="opt"> <label class="opt">
<input type="checkbox" name="part"> <input type="checkbox" name="nick">
Show parts Show nick changes
</label> </label>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">

View File

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

View File

@ -6,7 +6,7 @@ module.exports = function(irc, network) {
var client = this; var client = this;
irc.on("message", function(data) { irc.on("message", function(data) {
var target = data.to; var target = data.to;
if (target == irc.me) { if (target.toLowerCase() == irc.me.toLowerCase()) {
target = data.from; target = data.from;
} }
var chan = _.findWhere(network.channels, {name: target}); var chan = _.findWhere(network.channels, {name: target});