-/* cmd_global_netinfo.c - NeonServ v5.2
- * Copyright (C) 2011 Philipp Kreil (pk910)
+/* cmd_global_netinfo.c - NeonServ v5.3
+ * Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
reply(getTextBot(), user, "NS_NETINFO_HEADER");
char tmp[MAXLEN];
struct Table *table;
- table = table_init(2, 18, 0);
+ table = table_init(2, 19, 0);
char *content[2];
content[0] = get_language_string(user, "NS_NETINFO_UPTIME");
content[1] = tmp;
table_add(table, content);
+ #ifdef HAVE_THREADS
+ content[0] = get_language_string(user, "NS_NETINFO_THREADS");
+ sprintf(tmp, "%d (current thread: %i)", running_threads, getCurrentThreadID());
+ content[1] = tmp;
+ table_add(table, content);
+ #endif
+
if(strcmp(revision, ""))
sprintf(tmp, "%s.%d (%s)", NEONSERV_VERSION, patchlevel, revision);
else