Skip to content

Commit

Permalink
ah yes
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Feb 16, 2011
1 parent 3d3c303 commit 41f9952
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion evilbot.coffee
Expand Up @@ -95,7 +95,9 @@ say = (topic, message, callback) ->

listen = (cursor) ->
url = '/api/live.json'
url = "#{url}?cursor=#{cursor}" if cursor

if cursor and cursor.constructor == String
url += "?cursor=#{cursor}"

get url, (body) ->
for message in body.messages
Expand Down

0 comments on commit 41f9952

Please sign in to comment.