Bundle server with src in the on_rcjoin event.

This commit is contained in:
Elijah Perrault committed 2011-02-15 19:12:22 -07:00
1 parent e154175571
commit a831e0c4ab
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log
3.0 Indev
===============================================================================
* Bundle server with \%src in the on_rcjoin event.
* logchan is now joined automatically.
* Changed on_notice arguments to: \%src, $target, @msg
* Clean up shutdown.
+2 -1
View File
@@ -309,7 +309,8 @@ sub cjoin
else {
# It isn't. Update chanusers and trigger on_rcjoin.
$chanusers{$svr}{lc(substr $ex[2], 1)}{$src{nick}} = 1;
API::Std::event_run("on_rcjoin", ($svr, \%src, $chan));
$src{svr} = $svr;
API::Std::event_run("on_rcjoin", (\%src, $chan));
}
return 1;