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:
		
							parent
							
								
									fd0529021a
								
							
						
					
					
						commit
						499056e2e3
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -252,7 +252,7 @@ module Ebooks
 | 
				
			||||||
      case ev
 | 
					      case ev
 | 
				
			||||||
      when Array # Initial array sent on first connection
 | 
					      when Array # Initial array sent on first connection
 | 
				
			||||||
        log "Online!"
 | 
					        log "Online!"
 | 
				
			||||||
        fire(:connect)
 | 
					        fire(:connect, ev)
 | 
				
			||||||
        return
 | 
					        return
 | 
				
			||||||
      when Twitter::DirectMessage
 | 
					      when Twitter::DirectMessage
 | 
				
			||||||
        return if ev.sender.id == @user.id # Don't reply to self
 | 
					        return if ev.sender.id == @user.id # Don't reply to self
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue