Use API::IRC.

This commit is contained in:
Elijah Perrault committed 2011-01-19 16:04:37 -07:00
1 parent 03e0857713
commit 5e65bb31e3
1 file changed
+3 -4
+3 -4
View File
@@ -7,8 +7,7 @@ package Parser::IRC;
use strict; use strict;
use warnings; use warnings;
use API::Std qw(conf_get); use API::Std qw(conf_get);
use Data::Dumper; use API::IRC qw(cjoin);
# Raw parsing hash. # Raw parsing hash.
our %RAWC = ( our %RAWC = (
@@ -57,13 +56,13 @@ sub num001
my @sajoin = split(',', $cajoin[0]); my @sajoin = split(',', $cajoin[0]);
foreach my $sjoin (@sajoin) { foreach my $sjoin (@sajoin) {
Auto::socksnd($svr, "JOIN $sjoin"); cjoin($svr, $sjoin);
} }
} }
else { else {
# For multi-line ajoins. # For multi-line ajoins.
foreach my $sjoin (@cajoin) { foreach my $sjoin (@cajoin) {
Auto::socksnd($svr, "JOIN $sjoin"); cjoin($svr, $sjoin);
} }
} }
} }