From a2e167cbe2ace2ded2b19c12513100d5be5247db Mon Sep 17 00:00:00 2001
From: David Phillips <david@sighup.nz>
Date: Mon, 10 Sep 2018 20:55:16 +1200
Subject: Strip leading and trailing whitespace in handle_common

---
 idalius.pl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/idalius.pl b/idalius.pl
index d65a4e1..1771171 100755
--- a/idalius.pl
+++ b/idalius.pl
@@ -205,6 +205,8 @@ sub handle_common {
 	# Return early if should ignore
 	return if should_ignore($nick);
 
+	$what =~ s/^\s+|\s+$//g;
+
 	my $stripped_what = strip_color(strip_formatting($what));
 	my $no_prefix_what = $stripped_what;
 	if ($config{prefix_nick} && $no_prefix_what =~ s/^\Q$current_nick\E[:,]\s+//g ||
-- 
cgit v1.1