Added hook on_selfkick for when we are kicked from a channel.

This commit is contained in:
Elijah Perrault committed 2011-03-19 23:12:54 -06:00
1 parent 669561c8a4
commit 0315a1f121
2 files changed
+5

No files matched your search

+1
View File
@@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log
3.0 Indev
===============================================================================
* Added hook on_selfkick for when we are kicked from a channel.
* Moved chanusers to State::IRC.
* Created State::IRC.
* UNO now keeps game duration and cards played count.
+4
View File
@@ -49,6 +49,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_selfkick');
API::Std::event_add('on_myinfo');
API::Std::event_add('on_namesreply');
API::Std::event_add('on_nick');
@@ -403,6 +404,9 @@ sub kick {
API::IRC::cjoin($svr, $ex[2]);
}
}
# Trigger on_selfkick.
API::Std::event_run('on_selfkick', (\%src, $ex[2], $msg));
}
else {
# We weren't. Update chanusers and trigger on_kick.