mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 11:12:42 +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");
|
$self->{logger}->log("Connecting to $server:$port\n");
|
||||||
|
|
||||||
if ($self->{conn}) {
|
if ($self->{conn}) {
|
||||||
$self->{logger}->log("Error: already connected to $server:$port!\n");
|
$self->{logger}->log("Error: already connected to $self->{server}.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$self->{server} = "$server:$port";
|
||||||
|
|
||||||
for (my $attempt = 0; $attempt < $retries; $attempt++) {
|
for (my $attempt = 0; $attempt < $retries; $attempt++) {
|
||||||
my %config = (
|
my %config = (
|
||||||
Nick => $self->{registry}->get_value('irc', 'randomize_nick') ? $self->random_nick : $self->{registry}->get_value('irc', 'botnick'),
|
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
|
# These are set by the /misc/update_version script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 4558,
|
BUILD_REVISION => 4559,
|
||||||
BUILD_DATE => "2022-07-10",
|
BUILD_DATE => "2022-07-10",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user