parent
8996d58535
commit
05ae17328d
@ -9,7 +9,7 @@ module.exports = function(irc, network) {
|
|||||||
target = "you";
|
target = "you";
|
||||||
}
|
}
|
||||||
|
|
||||||
var chan = _.findWhere(network.channels, {name: data.channel});
|
var chan = _.find(network.channels, {name: data.channel});
|
||||||
if (typeof chan === "undefined") {
|
if (typeof chan === "undefined") {
|
||||||
chan = network.channels[0];
|
chan = network.channels[0];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user