Added hook on_namesreply.
This commit is contained in:
1 parent
5f1bf3785c
commit
c15c945262
2 files changed
+6
-1
No files matched your search
@@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log
|
||||
|
||||
3.0 Indev
|
||||
===============================================================================
|
||||
* Added hook on_namesreply.
|
||||
* All data related to a network is now deleted on disconnect.
|
||||
* Added hook on_disconnect.
|
||||
* Added various options to bin/auto, including support for multiple config
|
||||
|
||||
+5
-1
@@ -47,6 +47,7 @@ API::Std::event_add('on_rcjoin');
|
||||
API::Std::event_add('on_ucjoin');
|
||||
API::Std::event_add('on_isupport');
|
||||
API::Std::event_add('on_kick');
|
||||
API::Std::event_add('on_namesreply');
|
||||
API::Std::event_add('on_nick');
|
||||
API::Std::event_add('on_notice');
|
||||
API::Std::event_add('on_part');
|
||||
@@ -156,7 +157,7 @@ sub num353 {
|
||||
my ($svr, @ex) = @_;
|
||||
|
||||
# Get rid of the colon.
|
||||
$ex[5] = substr $ex[5], 1;
|
||||
$ex[5] =~ s/^://xsm;
|
||||
# Delete the old chanusers hash if it exists.
|
||||
if (defined $chanusers{$svr}{$ex[4]}) { delete $chanusers{$svr}{$ex[4]} }
|
||||
# Iterate through each user.
|
||||
@@ -191,6 +192,9 @@ sub num353 {
|
||||
}
|
||||
}
|
||||
|
||||
# Trigger on_namesreply.
|
||||
API::Std::event_run('on_namesreply', ($svr, $ex[4], @ex[5..$#ex]));
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user