From 795c1da38d60d92bd6842a50750c13f407e97b95 Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Tue, 15 Feb 2011 21:48:51 -0700 Subject: [PATCH] Ignore a NOTICE if it's from the server. --- lib/Parser/IRC.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Parser/IRC.pm b/lib/Parser/IRC.pm index 7792541..a07ff61 100644 --- a/lib/Parser/IRC.pm +++ b/lib/Parser/IRC.pm @@ -484,6 +484,9 @@ sub notice { my ($svr, @ex) = @_; + # Ensure this is coming from a user rather than a server. + if ($ex[0] !~ m/!/xsm) { return; } + # Prepare all the data. my %src = API::IRC::usrc(substr $ex[0], 1); my $target = $ex[2];