Added event on_myinfo for RPL_MYINFO (numeric 004).
This commit is contained in:
1 parent
0b6ed4c0cc
commit
123357c448
2 files changed
+5
No files matched your search
@@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log
|
|||||||
|
|
||||||
3.0 Indev
|
3.0 Indev
|
||||||
===============================================================================
|
===============================================================================
|
||||||
|
* Added event on_myinfo for RPL_MYINFO (numeric 004).
|
||||||
* Raw hooks now take hook names and support multiple hooks. This changes
|
* Raw hooks now take hook names and support multiple hooks. This changes
|
||||||
rchook_add and rchook_del.
|
rchook_add and rchook_del.
|
||||||
* Vim modelines must be at the bottom of files. Modules updated.
|
* Vim modelines must be at the bottom of files. Modules updated.
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ API::Std::event_add('on_rcjoin');
|
|||||||
API::Std::event_add('on_ucjoin');
|
API::Std::event_add('on_ucjoin');
|
||||||
API::Std::event_add('on_isupport');
|
API::Std::event_add('on_isupport');
|
||||||
API::Std::event_add('on_kick');
|
API::Std::event_add('on_kick');
|
||||||
|
API::Std::event_add('on_myinfo');
|
||||||
API::Std::event_add('on_namesreply');
|
API::Std::event_add('on_namesreply');
|
||||||
API::Std::event_add('on_nick');
|
API::Std::event_add('on_nick');
|
||||||
API::Std::event_add('on_notice');
|
API::Std::event_add('on_notice');
|
||||||
@@ -131,6 +132,9 @@ sub num004 {
|
|||||||
API::Log::alog "! $svr: $ex[3] running version $ex[4]";
|
API::Log::alog "! $svr: $ex[3] running version $ex[4]";
|
||||||
API::Log::dbug "! $svr: $ex[3] running version $ex[4]";
|
API::Log::dbug "! $svr: $ex[3] running version $ex[4]";
|
||||||
|
|
||||||
|
# Trigger on_myinfo.
|
||||||
|
API::Std::event_run('on_myinfo', ($svr, @ex[3..$#ex]));
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user