cCompositeChat has a MessageType param in the constructor.
This should make it easier to use.
This commit is contained in:
parent
8288e53c0b
commit
43844fc0f0
@ -112,8 +112,8 @@ cCompositeChat::cCompositeChat(void) :
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
cCompositeChat::cCompositeChat(const AString & a_ParseText) :
|
cCompositeChat::cCompositeChat(const AString & a_ParseText, eMessageType a_MessageType) :
|
||||||
m_MessageType(mtCustom)
|
m_MessageType(a_MessageType)
|
||||||
{
|
{
|
||||||
ParseText(a_ParseText);
|
ParseText(a_ParseText);
|
||||||
}
|
}
|
||||||
|
@ -117,7 +117,7 @@ public:
|
|||||||
/** Creates a new chat message and parses the text into parts.
|
/** Creates a new chat message and parses the text into parts.
|
||||||
Recognizes "http:" and "https:" links and @color-codes.
|
Recognizes "http:" and "https:" links and @color-codes.
|
||||||
Uses ParseText() for the actual parsing. */
|
Uses ParseText() for the actual parsing. */
|
||||||
cCompositeChat(const AString & a_ParseText);
|
cCompositeChat(const AString & a_ParseText, eMessageType a_MessageType = mtCustom);
|
||||||
|
|
||||||
~cCompositeChat();
|
~cCompositeChat();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user