diff options
author | David Phillips <david@sighup.nz> | 2018-09-10 20:55:16 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2018-09-10 20:55:16 +1200 |
commit | a2e167cbe2ace2ded2b19c12513100d5be5247db (patch) | |
tree | e5ff196867fb7830bff41a0f6ab293131c027bcf | |
parent | 7fa7d0a4e3011caa6ad824c59cde43d4fe7c485b (diff) | |
download | idalius-a2e167cbe2ace2ded2b19c12513100d5be5247db.tar.xz |
Strip leading and trailing whitespace in handle_common
-rwxr-xr-x | idalius.pl | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 || |