Propagate the flag indicating whether URL trapping is enabled.
authorpdbogen <pdbogen@088b83a4-0077-4247-935c-42ec02c2848b>
Sat, 13 Aug 2011 04:33:52 +0000 (04:33 +0000)
committerpdbogen <pdbogen@088b83a4-0077-4247-935c-42ec02c2848b>
Sat, 13 Aug 2011 04:33:52 +0000 (04:33 +0000)
git-svn-id: https://www.cernu.us/~pdbogen/svn/destult2@116 088b83a4-0077-4247-935c-42ec02c2848b

irc.pl

diff --git a/irc.pl b/irc.pl
index c94fe56..661f22b 100644 (file)
--- a/irc.pl
+++ b/irc.pl
@@ -202,7 +202,7 @@ sub on_public {
        $msg =~ s/(\x3)[0-9]{0,2}//g;
        $msg =~ s/\x02//g;
        $cmd = ( split( / /, $msg, 2 ) )[0];
-       $kernel->post( "core", "core_public", $who, $msg, $self->{ "ssid" }, $dest->[0], "send_public_to", ($bridged==0) );
+       $kernel->post( "core", "core_public", $who, $msg, $self->{ "ssid" }, $dest->[0], "send_public_to", ($bridged==0), $self->{ "trapEnabled" } );
 }
 
 sub on_private {