-/* cmd_global_netinfo.c - NeonServ v5.3
+/* cmd_global_netinfo.c - NeonServ v5.5
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
*/
CMD_BIND(global_cmd_netinfo) {
- reply(getTextBot(), user, "NS_NETINFO_HEADER");
+ reply(textclient, user, "NS_NETINFO_HEADER");
char tmp[MAXLEN];
struct Table *table;
table = table_init(2, 19, 0);
#endif
if(strcmp(get_revision(), ""))
- sprintf(tmp, "%s.%d (%s)", NEONSERV_VERSION, get_patchlevel(), get_revision());
+ sprintf(tmp, "%s.%d (%s: %s)", NEONSERV_VERSION, get_patchlevel(), (is_stable_revision() ? "stable" : "dev"), (is_stable_revision() ? get_revision() : get_dev_revision()));
else
sprintf(tmp, "%s.%d", NEONSERV_VERSION, get_patchlevel());
content[0] = get_language_string(user, "NS_NETINFO_VERSION");
char **table_lines = table_end(table);
int i;
for(i = 0; i < table->entrys; i++) {
- reply(getTextBot(), user, table_lines[i]);
+ reply(textclient, user, table_lines[i]);
}
table_free(table);
}