mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 00:27:23 +01:00 
			
		
		
		
	Plugins/GoogleSearch: handle no results case
This commit is contained in:
		
							parent
							
								
									b04df81f81
								
							
						
					
					
						commit
						d588913b7d
					
				@ -79,7 +79,8 @@ sub cmd_googlesearch {
 | 
			
		||||
    if ($@) {
 | 
			
		||||
        my $error = $@;
 | 
			
		||||
        $error =~ s/^WWW::Google::CustomSearch::search\(\): /google: /;
 | 
			
		||||
        $error =~ s/file .*$//;
 | 
			
		||||
        $error =~ s/file .*?$//;
 | 
			
		||||
        $error =~ s/Missing required arguments: totalResults.*/No results./;
 | 
			
		||||
        return $error;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user