From e154175571e1508dbedc93ff1f3ba6ef3a8c5e7c Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Tue, 15 Feb 2011 19:06:11 -0700 Subject: [PATCH] Actually, this is nicer. --- lib/Parser/IRC.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Parser/IRC.pm b/lib/Parser/IRC.pm index a6bd379..566f9b1 100644 --- a/lib/Parser/IRC.pm +++ b/lib/Parser/IRC.pm @@ -299,7 +299,7 @@ sub cjoin my ($svr, @ex) = @_; my %src = API::IRC::usrc(substr($ex[0], 1)); my $chan = $ex[2]; - if ($chan =~ m/^:/xsm) { $chan = substr $chan, 1; } + $chan =~ s/^://gxsm; # Check if this is coming from ourselves. if ($src{nick} eq $botnick{$svr}{nick}) {