mirror of
				https://github.com/42wim/matterbridge.git
				synced 2025-10-31 05:47:24 +01:00 
			
		
		
		
	Fix XMPP parseNick function (#1547)
This commit is contained in:
		
							parent
							
								
									761c0b79c5
								
							
						
					
					
						commit
						da4dcec14d
					
				| @ -385,7 +385,7 @@ func (b *Bxmpp) handleUploadFile(msg *config.Message) error { | ||||
| 
 | ||||
| func (b *Bxmpp) parseNick(remote string) string { | ||||
| 	s := strings.Split(remote, "@") | ||||
| 	if len(s) > 0 { | ||||
| 	if len(s) > 1 { | ||||
| 		s = strings.Split(s[1], "/") | ||||
| 		if len(s) == 2 { | ||||
| 			return s[1] // nick | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 tytan652
						tytan652