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) :
|
||||
m_MessageType(mtCustom)
|
||||
cCompositeChat::cCompositeChat(const AString & a_ParseText, eMessageType a_MessageType) :
|
||||
m_MessageType(a_MessageType)
|
||||
{
|
||||
ParseText(a_ParseText);
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user