Permalink
Browse files

Merge pull request #336 from elmoeleven/patch-1

Update src/scripts/translate.coffee
  • Loading branch information...
atmos committed Aug 23, 2012
2 parents d1986d9 + 0534f21 commit 5ac90046c3fbf167820c5e158d285cba52961570
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/scripts/translate.coffee
@@ -97,10 +97,10 @@ module.exports = (robot) ->
.header('User-Agent', 'Mozilla/5.0')
.get() (err, res, body) ->
data = body
- if data.length > 4 && data[0] == '['
+ if data.length > 4 and data[0] == '['
parsed = eval(data)
language =languages[parsed[2]]
- parsed = parsed[0] && parsed[0][0] && parsed[0][0][0]
+ parsed = parsed[0] and parsed[0][0] and parsed[0][0][0]
if parsed
if msg.match[2] is undefined
msg.send "#{term} is #{language} for #{parsed}"

0 comments on commit 5ac9004

Please sign in to comment.