mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-10-31 06:37:35 +01:00 
			
		
		
		
	Users: simplify previous commit
This commit is contained in:
		
							parent
							
								
									fa65bfc878
								
							
						
					
					
						commit
						3d1479aa59
					
				| @ -393,18 +393,11 @@ sub cmd_id { | ||||
|             return "I don't know anybody matching hostmask $target."; | ||||
|         } elsif (@accounts > 1) { | ||||
|             # found more than one account, list them | ||||
|             my %users; | ||||
| 
 | ||||
|             foreach my $account (@accounts) { | ||||
|                 next if exists $users{$account}; | ||||
|                 my $hostmask = $self->{pbot}->{messagehistory}->{database}->find_most_recent_hostmask($account); | ||||
|                 $users{$account} = $hostmask; | ||||
|             } | ||||
| 
 | ||||
|             my @hostmasks; | ||||
| 
 | ||||
|             foreach my $id (keys %users) { | ||||
|                 push @hostmasks, "$users{$id} ($id)"; | ||||
|             foreach my $account (@accounts) { | ||||
|                 my $hostmask = $self->{pbot}->{messagehistory}->{database}->find_most_recent_hostmask($account); | ||||
|                 push @hostmasks, "$hostmask ($account)"; | ||||
|             } | ||||
| 
 | ||||
|             return "Found multiple accounts: " . (join ', ', sort @hostmasks); | ||||
|  | ||||
| @ -25,7 +25,7 @@ use PBot::Imports; | ||||
| # These are set by the /misc/update_version script | ||||
| use constant { | ||||
|     BUILD_NAME     => "PBot", | ||||
|     BUILD_REVISION => 4389, | ||||
|     BUILD_REVISION => 4390, | ||||
|     BUILD_DATE     => "2021-09-14", | ||||
| }; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Pragmatic Software
						Pragmatic Software