diff options
| author | 2013-03-18 20:46:33 +0000 | |
|---|---|---|
| committer | 2013-03-18 20:46:33 +0000 | |
| commit | 95b83ee0416677254259236f5563815fc405df7b (patch) | |
| tree | f62c19c7dc9f0c56b74248bdfff49724e7d0fa85 | |
| parent | 4c8e9e917cde4e1455da331847defa5274d99753 (diff) | |
Don't relay PMs starting with 2 semicolons to the master channel
| -rw-r--r-- | modules/event.pl | 2 |
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]); } } |
