Use regex here.

This commit is contained in:
Elijah Perrault committed 2011-02-08 13:25:52 -07:00
1 parent 52177caa64
commit 210be3e61e
1 file changed
+1 -1
+1 -1
View File
@@ -375,7 +375,7 @@ sub match_user
}
}
elsif ($uhk eq 'chanstatus' and defined $ulhp{'net'}) {
my ($ccst, $ccnm) = split ':', ($ulhp{$uhk})[0][0];
my ($ccst, $ccnm) = split m/[:]/, ($ulhp{$uhk})[0][0];
my $svr = $ulhp{net}[0];
if (defined $Auto::SOCKET{$svr}) {
foreach my $bcj (@{ $Parser::IRC::botchans{$svr} }) {