Permalink
Browse files

ah yes

  • Loading branch information...
1 parent 3d3c303 commit 41f9952e2f223ea9633b25c0b1146c97c459c992 @defunkt committed Feb 16, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 evilbot.coffee
View
@@ -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

0 comments on commit 41f9952

Please sign in to comment.