summaryrefslogtreecommitdiffstats
path: root/config-default
diff options
context:
space:
mode:
Diffstat (limited to 'config-default')
-rw-r--r--config-default/commands.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/config-default/commands.xml b/config-default/commands.xml
index 6828438..8f6cb41 100644
--- a/config-default/commands.xml
+++ b/config-default/commands.xml
@@ -149,6 +149,20 @@
}
]]>
</command>
+ <command cmd="^;silence (\S+) ?(yes|no)?$" flag="a">
+ <![CDATA[
+ my $chan = lc $1;
+ if (defined($2)) {
+ my $switch = lc $2;
+ $::channels->{channel}->{$chan}->{silence} = $switch;
+ ASM::XML->writeChannels();
+ $conn->privmsg($event->replyto, "Silence flag for $chan set to $switch");
+ } else {
+ my $switch = $::channels->{channel}->{$chan}->{silence};
+ $conn->privmsg($event->replyto, "Silence flag for $chan is currently set to $switch");
+ }
+ ]]>
+ </command>
<command cmd="^;help$">
<![CDATA[
$conn->privmsg($event->replyto, "Please refer to http://antispammeta.net and irc.freenode.net #antispammeta");