From 95b83ee0416677254259236f5563815fc405df7b Mon Sep 17 00:00:00 2001 From: William Heimbigner Date: Mon, 18 Mar 2013 20:46:33 +0000 Subject: Don't relay PMs starting with 2 semicolons to the master channel --- modules/event.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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]); } } -- cgit v1.2.3