Added $got_001 to Parser::IRC for checking if we've been sent 001.
This commit is contained in:
1 parent
a04707ebb2
commit
40db6be9ca
3 files changed
+9
No files matched your search
@@ -3,6 +3,8 @@ Auto IRC Bot 3.0: Change Log
|
|||||||
|
|
||||||
3.0 Indev
|
3.0 Indev
|
||||||
==================================================================
|
==================================================================
|
||||||
|
* Added $got_001 to Parser::IRC for checking if we've been
|
||||||
|
sent 001.
|
||||||
* Renamed API::IRC::mode() to cmode()
|
* Renamed API::IRC::mode() to cmode()
|
||||||
* Added mod_init() and mod_void() to API::Std.
|
* Added mod_init() and mod_void() to API::Std.
|
||||||
* Use Class::Unload.
|
* Use Class::Unload.
|
||||||
|
|||||||
@@ -69,5 +69,7 @@ sub quit {
|
|||||||
else {
|
else {
|
||||||
Auto::socksnd($svr, "QUIT :Leaving");
|
Auto::socksnd($svr, "QUIT :Leaving");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete $Parser::IRC::got_001{$svr} if (defined $Parser::IRC::got_001{$svr});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -14,6 +14,9 @@ our %RAWC = (
|
|||||||
'001' => \&num001,
|
'001' => \&num001,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
# Variables for various functions.
|
||||||
|
our (%got_001);
|
||||||
|
|
||||||
# Parse raw data.
|
# Parse raw data.
|
||||||
sub _parse
|
sub _parse
|
||||||
{
|
{
|
||||||
@@ -47,6 +50,8 @@ sub num001
|
|||||||
{
|
{
|
||||||
my ($svr, @ex) = @_;
|
my ($svr, @ex) = @_;
|
||||||
|
|
||||||
|
$got_001{$svr} = 1;
|
||||||
|
|
||||||
# Get the auto-join from the config.
|
# Get the auto-join from the config.
|
||||||
my @cajoin = @{ (conf_get("server:$svr:ajoin"))[0] };
|
my @cajoin = @{ (conf_get("server:$svr:ajoin"))[0] };
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user