From c25939480d6134c200a14ecab23eee60b175596f Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Wed, 14 Jan 2009 07:56:23 -0700 Subject: Updated llmessage --- linden/indra/llmessage/llmessagetemplate.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'linden/indra/llmessage/llmessagetemplate.h') diff --git a/linden/indra/llmessage/llmessagetemplate.h b/linden/indra/llmessage/llmessagetemplate.h index 716c618..445d1a8 100644 --- a/linden/indra/llmessage/llmessagetemplate.h +++ b/linden/indra/llmessage/llmessagetemplate.h @@ -34,6 +34,7 @@ #include "lldarray.h" #include "message.h" // TODO: babbage: Remove... +#include "llstat.h" #include "llstl.h" class LLMsgVarData @@ -370,20 +371,23 @@ public: { if (mHandlerFunc) { + LLPerfBlock msg_cb_time("msg_cb", mName); mHandlerFunc(msgsystem, mUserData); return TRUE; } return FALSE; } - bool isBanned(bool trustedSource) const + bool isUdpBanned() const { - return trustedSource ? mBanFromTrusted : mBanFromUntrusted; + return mDeprecation == MD_UDPBLACKLISTED; } - bool isUdpBanned() const + void banUdp(); + + bool isBanned(bool trustedSource) const { - return mDeprecation == MD_UDPBLACKLISTED; + return trustedSource ? mBanFromTrusted : mBanFromUntrusted; } friend std::ostream& operator<<(std::ostream& s, LLMessageTemplate &msg); -- cgit v1.1