aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llmessagetemplate.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-28 17:21:23 -0500
committerJacek Antonelli2008-09-28 17:21:46 -0500
commit31e7c77a411d94bc87f0232588b339149bb29a49 (patch)
tree49e487700e91713e620e4d33f20b7f7afb5a2fa9 /linden/indra/llmessage/llmessagetemplate.h
parentSecond Life viewer sources 1.21.2-RC (diff)
downloadmeta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.zip
meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.gz
meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.bz2
meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.xz
Second Life viewer sources 1.21.3-RC
Diffstat (limited to 'linden/indra/llmessage/llmessagetemplate.h')
-rw-r--r--linden/indra/llmessage/llmessagetemplate.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/linden/indra/llmessage/llmessagetemplate.h b/linden/indra/llmessage/llmessagetemplate.h
index f92c4b7..716c618 100644
--- a/linden/indra/llmessage/llmessagetemplate.h
+++ b/linden/indra/llmessage/llmessagetemplate.h
@@ -265,6 +265,7 @@ enum EMsgDeprecation
265{ 265{
266 MD_NOTDEPRECATED, 266 MD_NOTDEPRECATED,
267 MD_UDPDEPRECATED, 267 MD_UDPDEPRECATED,
268 MD_UDPBLACKLISTED,
268 MD_DEPRECATED 269 MD_DEPRECATED
269}; 270};
270 271
@@ -299,7 +300,7 @@ public:
299 ~LLMessageTemplate() 300 ~LLMessageTemplate()
300 { 301 {
301 for_each(mMemberBlocks.begin(), mMemberBlocks.end(), DeletePointer()); 302 for_each(mMemberBlocks.begin(), mMemberBlocks.end(), DeletePointer());
302} 303 }
303 304
304 void addBlock(LLMessageBlock *blockp) 305 void addBlock(LLMessageBlock *blockp)
305 { 306 {
@@ -380,6 +381,11 @@ public:
380 return trustedSource ? mBanFromTrusted : mBanFromUntrusted; 381 return trustedSource ? mBanFromTrusted : mBanFromUntrusted;
381 } 382 }
382 383
384 bool isUdpBanned() const
385 {
386 return mDeprecation == MD_UDPBLACKLISTED;
387 }
388
383 friend std::ostream& operator<<(std::ostream& s, LLMessageTemplate &msg); 389 friend std::ostream& operator<<(std::ostream& s, LLMessageTemplate &msg);
384 390
385 const LLMessageBlock* getBlock(char* name) const 391 const LLMessageBlock* getBlock(char* name) const