1
0
Fork 0

cCompositeChat has a MessageType param in the constructor.

This should make it easier to use.
This commit is contained in:
madmaxoft 2014-03-31 13:28:38 +02:00
parent 8288e53c0b
commit 43844fc0f0
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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();