Send user ID array with on_connect.

This would be useful for people who might want to do some follow list
processing without using an extra requests (i.e. to compare with a list
of followers)
This commit is contained in:
Stawberri 2015-01-17 21:16:57 -08:00
parent fd0529021a
commit 499056e2e3

View file

@ -252,7 +252,7 @@ module Ebooks
case ev
when Array # Initial array sent on first connection
log "Online!"
fire(:connect)
fire(:connect, ev)
return
when Twitter::DirectMessage
return if ev.sender.id == @user.id # Don't reply to self