aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xidalius.pl2
1 files changed, 2 insertions, 0 deletions
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 ||