From ace8734c27d5c8331cc6cd29b4e10671612be693 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Wed, 24 Oct 2018 19:33:18 +1300 Subject: Admin: Add runtime prefix changing --- idalius.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'idalius.pl') diff --git a/idalius.pl b/idalius.pl index 1565bdb..acd63d2 100755 --- a/idalius.pl +++ b/idalius.pl @@ -222,7 +222,7 @@ 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$config->{_}->{current_nick}\E[:,]\s+//g || - $no_prefix_what =~ s/^$config->{_}->{prefix}//)) { + ($config->{_}->{prefix} && $no_prefix_what =~ s/^\Q$config->{_}->{prefix}//))) { $output = run_command($no_prefix_what, $who, $where, $ided); $irc->yield(privmsg => $where => $output) if $output; strike_add($nick, $channel) if $output; -- cgit v1.1