Changeset 97
- Timestamp:
- 02/12/06 15:08:33 (2 years ago)
- Files:
-
- 1 modified
-
trunk/sm/mod_iq_version.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/sm/mod_iq_version.c
r2 r97 59 59 return mod_PASS; 60 60 61 nad_insert_elem(pkt->nad, 2, NAD_ENS(pkt->nad, 1), "name", " session manager (jabberd)");61 nad_insert_elem(pkt->nad, 2, NAD_ENS(pkt->nad, 1), "name", "jabberd2 (session manager)"); 62 62 nad_insert_elem(pkt->nad, 2, NAD_ENS(pkt->nad, 1), "version", mi->sm->signature); 63 63 64 64 /* figure out the os type */ 65 65 #if defined(HAVE_UNAME) 66 uname(&un);67 snprintf(buf, 256, "%s %s", un.sysname, un.release);68 nad_insert_elem(pkt->nad, 2, NAD_ENS(pkt->nad, 1), "os", buf);69 66 if(uname(&un) == 0) { 67 snprintf(buf, 256, "%s %s", un.sysname, un.machine); 68 nad_insert_elem(pkt->nad, 2, NAD_ENS(pkt->nad, 1), "os", buf); 69 } 70 70 #elif defined(WIN32) 71 71 ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX));
