mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 08:37:24 +01:00 
			
		
		
		
	Remove "modules" and "admins" from export command
				
					
				
			This commit is contained in:
		
							parent
							
								
									8896f4f1bb
								
							
						
					
					
						commit
						b40eb16394
					
				@ -293,20 +293,12 @@ sub export {
 | 
			
		||||
  my ($from, $nick, $user, $host, $arguments) = @_;
 | 
			
		||||
 | 
			
		||||
  if (not defined $arguments) {
 | 
			
		||||
    return "/msg $nick Usage: export <modules|factoids|admins>";
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if ($arguments =~ /^modules$/i) {
 | 
			
		||||
    return "/msg $nick Coming soon.";
 | 
			
		||||
    return "/msg $nick Usage: export <factoids>";
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if ($arguments =~ /^factoids$/i) {
 | 
			
		||||
    return $self->{pbot}->{factoids}->export_factoids;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if ($arguments =~ /^admins$/i) {
 | 
			
		||||
    return "/msg $nick Coming soon.";
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
sub evalcmd {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user