aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llmessagetemplate.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-10-17 20:01:38 -0500
committerJacek Antonelli2008-10-17 20:01:38 -0500
commitfdf944fb0355249d73c4e25ee86e9ffd378e7d4b (patch)
tree2e5c51fe0e6d5757f984721e01cc097801d927e7 /linden/indra/llmessage/llmessagetemplate.h
parentRebranded Windows-specific installer/support files. (diff)
parentUpdated source to SL version 1.21.6. (diff)
downloadmeta-impy-fdf944fb0355249d73c4e25ee86e9ffd378e7d4b.zip
meta-impy-fdf944fb0355249d73c4e25ee86e9ffd378e7d4b.tar.gz
meta-impy-fdf944fb0355249d73c4e25ee86e9ffd378e7d4b.tar.bz2
meta-impy-fdf944fb0355249d73c4e25ee86e9ffd378e7d4b.tar.xz
Merge branch 'merge-1.21.6' into rebranding
Conflicts: linden/indra/newview/installers/windows/installer_template.nsi linden/indra/newview/llappviewer.cpp
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