summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-31 13:28:38 +0200
committermadmaxoft <github@xoft.cz>2014-03-31 13:28:38 +0200
commit43844fc0f04ffd326af4ebc9e46ec220e27d1309 (patch)
treec6493a9b9ae837b0e69c314637b20654af3ff943
parentFixed a few Clang warnings in BlockHandlers. (diff)
downloadcuberite-43844fc0f04ffd326af4ebc9e46ec220e27d1309.tar
cuberite-43844fc0f04ffd326af4ebc9e46ec220e27d1309.tar.gz
cuberite-43844fc0f04ffd326af4ebc9e46ec220e27d1309.tar.bz2
cuberite-43844fc0f04ffd326af4ebc9e46ec220e27d1309.tar.lz
cuberite-43844fc0f04ffd326af4ebc9e46ec220e27d1309.tar.xz
cuberite-43844fc0f04ffd326af4ebc9e46ec220e27d1309.tar.zst
cuberite-43844fc0f04ffd326af4ebc9e46ec220e27d1309.zip
-rw-r--r--src/CompositeChat.cpp4
-rw-r--r--src/CompositeChat.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/CompositeChat.cpp b/src/CompositeChat.cpp
index a917ee70f..94f8a5901 100644
--- a/src/CompositeChat.cpp
+++ b/src/CompositeChat.cpp
@@ -112,8 +112,8 @@ cCompositeChat::cCompositeChat(void) :
-cCompositeChat::cCompositeChat(const AString & a_ParseText) :
- m_MessageType(mtCustom)
+cCompositeChat::cCompositeChat(const AString & a_ParseText, eMessageType a_MessageType) :
+ m_MessageType(a_MessageType)
{
ParseText(a_ParseText);
}
diff --git a/src/CompositeChat.h b/src/CompositeChat.h
index 27319490d..d5f4ebb24 100644
--- a/src/CompositeChat.h
+++ b/src/CompositeChat.h
@@ -117,7 +117,7 @@ public:
/** Creates a new chat message and parses the text into parts.
Recognizes "http:" and "https:" links and @color-codes.
Uses ParseText() for the actual parsing. */
- cCompositeChat(const AString & a_ParseText);
+ cCompositeChat(const AString & a_ParseText, eMessageType a_MessageType = mtCustom);
~cCompositeChat();