diff options
Diffstat (limited to 'protocols/JabberG/src/jabber_agent.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_agent.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_agent.cpp b/protocols/JabberG/src/jabber_agent.cpp index 1cb0aceae4..07894f0f1d 100644 --- a/protocols/JabberG/src/jabber_agent.cpp +++ b/protocols/JabberG/src/jabber_agent.cpp @@ -161,8 +161,8 @@ public: if (auto *xNode = queryNode->FirstChildElement("x")) {
// use new jabber:x:data form
- if (auto *n = xNode->FirstChildElement("instructions"))
- JabberFormSetInstruction(m_hwnd, n->GetText());
+ if (const char *pszText = XmlGetChildText(xNode, "instructions"))
+ JabberFormSetInstruction(m_hwnd, pszText);
JabberFormCreateUI(hFrame, xNode, &m_formHeight /*dummy*/);
}
|