mirror of
				https://github.com/shazow/ssh-chat.git
				synced 2025-11-04 05:25:33 +01:00 
			
		
		
		
	
							parent
							
								
									9bf66ea992
								
							
						
					
					
						commit
						badcaa6e3b
					
				@ -96,6 +96,9 @@ func (i Identity) WhoisAdmin(room *chat.Room) string {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	if member, ok := room.MemberByID(i.ID()); ok {
 | 
						if member, ok := room.MemberByID(i.ID()); ok {
 | 
				
			||||||
		// Add room-specific whois
 | 
							// Add room-specific whois
 | 
				
			||||||
 | 
							if isAway, awaySince, awayMessage := member.GetAway(); isAway {
 | 
				
			||||||
 | 
								fmt.Fprintf(&out, message.Newline+" > away: (%s ago) %s", humantime.Since(awaySince), awayMessage)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		// FIXME: Should these always be present, even if they're false? Maybe
 | 
							// FIXME: Should these always be present, even if they're false? Maybe
 | 
				
			||||||
		// change that once we add room context to Whois() above.
 | 
							// change that once we add room context to Whois() above.
 | 
				
			||||||
		if !member.LastMsg().IsZero() {
 | 
							if !member.LastMsg().IsZero() {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user