Include this as well.
This commit is contained in:
1 parent
62551dc6c9
commit
c268f27308
1 file changed
+5
-3
+5
-3
@@ -11,6 +11,8 @@ our @ISA = qw(Exporter);
|
|||||||
our @EXPORT_OK = qw(ban cjoin cpart cmode umode kick privmsg notice quit nick names
|
our @EXPORT_OK = qw(ban cjoin cpart cmode umode kick privmsg notice quit nick names
|
||||||
topic who usrc match_mask);
|
topic who usrc match_mask);
|
||||||
|
|
||||||
|
# Create the on_disconnect event.
|
||||||
|
API::Std::event_add('on_disconnect');
|
||||||
|
|
||||||
# Set a ban, based on config bantype value.
|
# Set a ban, based on config bantype value.
|
||||||
sub ban
|
sub ban
|
||||||
@@ -188,11 +190,11 @@ sub quit {
|
|||||||
Auto::socksnd($svr, "QUIT :$reason");
|
Auto::socksnd($svr, "QUIT :$reason");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Auto::socksnd($svr, "QUIT :Leaving");
|
Auto::socksnd($svr, 'QUIT :Leaving');
|
||||||
}
|
}
|
||||||
|
|
||||||
delete $Proto::IRC::got_001{$svr} if (defined $Proto::IRC::got_001{$svr});
|
# Trigger on_disconnect.
|
||||||
delete $Proto::IRC::botinfo{$svr} if (defined $Proto::IRC::botinfo{$svr});
|
API::Std::event_run('on_disconnect', $svr);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user