Use decent regex.

This commit is contained in:
Elijah Perrault committed 2011-02-15 18:13:00 -07:00
1 parent df401193dc
commit 29f00aba27
1 file changed
+4 -2
+4 -2
View File
@@ -6,6 +6,7 @@ use strict;
use warnings;
use API::Std qw(conf_get err awarn trans);
use API::IRC;
use Data::Dumper;
# Raw parsing hash.
our %RAWC = (
@@ -53,8 +54,9 @@ sub ircparse
my ($svr, $data) = @_;
# Split spaces into @ex.
my @ex = split(' ', $data);
my @ex = split /\s+/, $data;
print Dumper(@ex);
# Make sure there is enough data.
if (defined $ex[0] and defined $ex[1]) {
# If it's a ping...