aboutsummaryrefslogtreecommitdiff
path: root/idalius.pl
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2018-10-24 19:33:18 +1300
committerDavid Phillips <david@yeah.nah.nz>2018-10-24 19:33:18 +1300
commitace8734c27d5c8331cc6cd29b4e10671612be693 (patch)
tree815a2e63f512d89b60fb486a8ef72317322c0108 /idalius.pl
parenta59f6c4d3d8664526c09d30b974a2ae9eca03b07 (diff)
downloadidalius-ace8734c27d5c8331cc6cd29b4e10671612be693.tar.xz
Admin: Add runtime prefix changing
Diffstat (limited to 'idalius.pl')
-rwxr-xr-xidalius.pl2
1 files changed, 1 insertions, 1 deletions
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;