From 4c8650f55290b993a3849fe1175f078bf3ec907b Mon Sep 17 00:00:00 2001 From: Seth Hall Date: Thu, 10 Mar 2011 13:12:38 -0500 Subject: [PATCH] The global NOTICE function is back. There is a small shim function placed into the global namespace now that forwards the call to the appropriate function in the Notice namespace. --- policy/notice.bro | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/policy/notice.bro b/policy/notice.bro index e02c699b26..f6d1f921b2 100644 --- a/policy/notice.bro +++ b/policy/notice.bro @@ -97,7 +97,7 @@ export { # These are implemented below global email_notice_to: function(n: Notice::Info, dest: string) &redef; - global NOTICE: function(n: Notice::Info); + global notice: function(n: Notice::Info); } @@ -280,3 +280,11 @@ function NOTICE(n: Notice::Info) @load notice-action-filters + +module GLOBAL; + +## This is the wrapper in the global namespace for the Notice::notice function. +function NOTICE(n: Notice::Info) + { + Notice::notice(n); + } \ No newline at end of file