mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 00:27:23 +01:00 
			
		
		
		
	Core: show previous server:port if connecting without disconnecting
This commit is contained in:
		
							parent
							
								
									74380f2a72
								
							
						
					
					
						commit
						f7d361beca
					
				@ -248,10 +248,12 @@ sub connect {
 | 
			
		||||
    $self->{logger}->log("Connecting to $server:$port\n");
 | 
			
		||||
 | 
			
		||||
    if ($self->{conn}) {
 | 
			
		||||
        $self->{logger}->log("Error: already connected to $server:$port!\n");
 | 
			
		||||
        $self->{logger}->log("Error: already connected to $self->{server}.\n");
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    $self->{server} = "$server:$port";
 | 
			
		||||
 | 
			
		||||
    for (my $attempt = 0; $attempt < $retries; $attempt++) {
 | 
			
		||||
        my %config = (
 | 
			
		||||
            Nick        => $self->{registry}->get_value('irc', 'randomize_nick') ? $self->random_nick : $self->{registry}->get_value('irc', 'botnick'),
 | 
			
		||||
 | 
			
		||||
@ -25,7 +25,7 @@ use PBot::Imports;
 | 
			
		||||
# These are set by the /misc/update_version script
 | 
			
		||||
use constant {
 | 
			
		||||
    BUILD_NAME     => "PBot",
 | 
			
		||||
    BUILD_REVISION => 4558,
 | 
			
		||||
    BUILD_REVISION => 4559,
 | 
			
		||||
    BUILD_DATE     => "2022-07-10",
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user