summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2013-03-18 20:46:33 +0000
committerLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2013-03-18 20:46:33 +0000
commit95b83ee0416677254259236f5563815fc405df7b (patch)
treef62c19c7dc9f0c56b74248bdfff49724e7d0fa85
parent4c8e9e917cde4e1455da331847defa5274d99753 (diff)
Don't relay PMs starting with 2 semicolons to the master channel
-rw-r--r--modules/event.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/event.pl b/modules/event.pl
index b74c4d0..42ee2c1 100644
--- a/modules/event.pl
+++ b/modules/event.pl
@@ -294,7 +294,7 @@ sub on_msg
my ($conn, $event) = @_;
$::commander->command($conn, $event);
ASM::Util->dprint($event->{from} . " - " . $event->{args}->[0], 'msg');
- if (ASM::Util->notRestricted($event->{nick}, "nomsgs")) {
+ if ((ASM::Util->notRestricted($event->{nick}, "nomsgs")) && ($event->{args}->[0] !~ /^;;/)) {
$conn->privmsg($::settings->{masterchan}, $event->{from} . ' told me: ' . $event->{args}->[0]);
}
}