3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 03:02:47 +01:00

Core: show previous server:port if connecting without disconnecting

This commit is contained in:
Pragmatic Software 2022-07-10 12:53:17 -07:00
parent 74380f2a72
commit f7d361beca
2 changed files with 4 additions and 2 deletions

View File

@ -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'),

View File

@ -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",
};