diff options
author | David Phillips <david@sighup.nz> | 2018-09-13 18:50:02 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2018-09-13 18:50:02 +1200 |
commit | 14d03ea7e78ef45f0842a50f3734ea146a90682b (patch) | |
tree | 8ef1e1f79aa604544deb3f525a5b685258fc89e4 | |
parent | 31c97252b6b15fb2fa21f5f830f5c87cc2d61692 (diff) | |
download | idalius-14d03ea7e78ef45f0842a50f3734ea146a90682b.tar.xz |
Fix command ignore parenthesis
-rwxr-xr-x | idalius.pl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -205,8 +205,8 @@ sub handle_common { my $stripped_what = strip_color(strip_formatting($what)); my $no_prefix_what = $stripped_what; - if (!should_ignore($nick) && $config{prefix_nick} && $no_prefix_what =~ s/^\Q$current_nick\E[:,]\s+//g || - $no_prefix_what =~ s/^$config{prefix}//) { + if (!should_ignore($nick) && ($config{prefix_nick} && $no_prefix_what =~ s/^\Q$current_nick\E[:,]\s+//g || + $no_prefix_what =~ s/^$config{prefix}//)) { $output = run_command($no_prefix_what, $who, $where); $irc->yield(privmsg => $where => $output) if $output; strike_add($nick, $channel) if $output; |