summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarJanik Kleinhoff <janik@kleinhoff.de>2015-03-01 07:35:45 +0400
committerLibravatarJanik Kleinhoff <janik@kleinhoff.de>2015-03-01 07:35:45 +0400
commit0015ac246c75892fa43183e30396031e732a3a48 (patch)
treef31e44d15f2dd4ece5b6e9961ad9b97ab5408b16
parent84f907f09f45aad05b7c4739e8ceb31b700b2fdb (diff)
;monitor, ;silence: return default if flag isn't set either way
-rw-r--r--config-default/commands.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/config-default/commands.xml b/config-default/commands.xml
index 8f6cb41..a29c7cd 100644
--- a/config-default/commands.xml
+++ b/config-default/commands.xml
@@ -144,7 +144,7 @@
ASM::XML->writeChannels();
$conn->privmsg($event->replyto, "Monitor flag for $chan set to $switch");
} else {
- my $switch = $::channels->{channel}->{$chan}->{monitor};
+ my $switch = $::channels->{channel}->{$chan}->{monitor} // 'yes';
$conn->privmsg($event->replyto, "Monitor flag for $chan is currently set to $switch");
}
]]>
@@ -158,7 +158,7 @@
ASM::XML->writeChannels();
$conn->privmsg($event->replyto, "Silence flag for $chan set to $switch");
} else {
- my $switch = $::channels->{channel}->{$chan}->{silence};
+ my $switch = $::channels->{channel}->{$chan}->{silence} // 'no';
$conn->privmsg($event->replyto, "Silence flag for $chan is currently set to $switch");
}
]]>