Skip to content

Commit

Permalink
Do getValue() of Boolean objects before comparing them
Browse files Browse the repository at this point in the history
  • Loading branch information
Kshitij Parajuli committed Sep 27, 2013
1 parent 5b87fa9 commit a8ce920
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/irclink.js
Expand Up @@ -59,7 +59,7 @@ module.exports = function IRCLink(connID, app) {
autoRejoin: false,
channels: channels,
floodProtection: true,
secure: userConn.ssl,
secure: userConn.ssl.valueOf(),
selfSigned: userConn.selfSigned,
encoding: userConn.encoding,
certExpired: false,
Expand All @@ -80,7 +80,7 @@ module.exports = function IRCLink(connID, app) {
};

instance.logMessage = function(from, to, msg) {
if (!userConn.temporary) {
if (!userConn.temporary.valueOf()) {
Message.create({
conn_id: connID
, by: from
Expand All @@ -92,7 +92,7 @@ module.exports = function IRCLink(connID, app) {
};

instance.logPM = function(from, msg) {
if (!userConn.temporary) {
if (!userConn.temporary.valueOf()) {
PrivateMessage.create({
conn_id: connID
, by: from
Expand Down

0 comments on commit a8ce920

Please sign in to comment.