logchan is now joined automatically.

This commit is contained in:
Elijah Perrault committed 2011-02-15 19:03:32 -07:00
1 parent 945edfaf54
commit 3c7e975c98
2 files changed
+8

No files matched your search

+7
View File
@@ -82,6 +82,13 @@ hook_add("on_connect", "autojoin", sub {
# For multi-line ajoins.
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;
});