diff options
| -rw-r--r-- | config-default/commands.xml | 4 |
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"); } ]]> |
