logchan is now joined automatically.
This commit is contained in:
1 parent
945edfaf54
commit
3c7e975c98
2 files changed
+8
No files matched your search
@@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log
|
|||||||
|
|
||||||
3.0 Indev
|
3.0 Indev
|
||||||
===============================================================================
|
===============================================================================
|
||||||
|
* logchan is now joined automatically.
|
||||||
* Changed on_notice arguments to: \%src, $target, @msg
|
* Changed on_notice arguments to: \%src, $target, @msg
|
||||||
* Clean up shutdown.
|
* Clean up shutdown.
|
||||||
* Created event on_shutdown.
|
* Created event on_shutdown.
|
||||||
|
|||||||
@@ -82,6 +82,13 @@ hook_add("on_connect", "autojoin", sub {
|
|||||||
# For multi-line ajoins.
|
# For multi-line ajoins.
|
||||||
API::IRC::cjoin($svr, $_) foreach (@cajoin);
|
API::IRC::cjoin($svr, $_) foreach (@cajoin);
|
||||||
}
|
}
|
||||||
|
# And logchan, if applicable.
|
||||||
|
if (conf_get('logchan')) {
|
||||||
|
my ($lcn, $lcc) = split '/', (conf_get('logchan'))[0][0];
|
||||||
|
if ($lcn eq $svr) {
|
||||||
|
API::IRC::cjoin($svr, $lcc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user