mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 16:55:10 +00:00
[ADD] Use actual OS as information
This commit is contained in:
parent
9a2d4188e2
commit
71f3836ee1
1 changed files with 4 additions and 1 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
#include <Matrix.h>
|
#include <Matrix.h>
|
||||||
#include <AS.h>
|
#include <AS.h>
|
||||||
|
|
||||||
|
#include <sys/utsname.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
|
|
@ -583,13 +584,15 @@ IQGet(ParseeData *args, XMLElement *stanza, XMPPThread *thr)
|
||||||
query = XMLCreateTag("query");
|
query = XMLCreateTag("query");
|
||||||
XMLAddAttr(query, "xmlns", "jabber:iq:version");
|
XMLAddAttr(query, "xmlns", "jabber:iq:version");
|
||||||
{
|
{
|
||||||
|
struct utsname info;
|
||||||
name = XMLCreateTag("name");
|
name = XMLCreateTag("name");
|
||||||
version = XMLCreateTag("version");
|
version = XMLCreateTag("version");
|
||||||
os = XMLCreateTag("os");
|
os = XMLCreateTag("os");
|
||||||
|
uname(&info);
|
||||||
|
|
||||||
XMLAddChild(name, XMLCreateText(NAME));
|
XMLAddChild(name, XMLCreateText(NAME));
|
||||||
XMLAddChild(version, XMLCreateText(VERSION "[" CODE "]"));
|
XMLAddChild(version, XMLCreateText(VERSION "[" CODE "]"));
|
||||||
XMLAddChild(os, XMLCreateText("POSIX-like"));
|
XMLAddChild(os, XMLCreateText(info.sysname));
|
||||||
}
|
}
|
||||||
XMLAddChild(query, name);
|
XMLAddChild(query, name);
|
||||||
XMLAddChild(query, version);
|
XMLAddChild(query, version);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue