-/* cmd_neonserv_info.c - NeonServ v5.4
+/* cmd_neonserv_info.c - NeonServ v5.6
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
table = table_init(2, 9, 0);
table_set_bold(table, 0, 1);
char *content[2];
- reply(getTextBot(), user, "NS_INFO_HEADER", chan->name);
+ reply(textclient, user, "NS_INFO_HEADER", chan->name);
content[0] = get_language_string(user, "NS_INFO_DEFAULTTOPIC");
content[1] = row[0];
table_add(table, content);
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);
if(userisowner || isGodMode(user)) {
printf_mysql_query("SELECT `owner_history_time`, a.`user_user`, b.`user_user` FROM `owner_history` LEFT JOIN `users` a ON `owner_history_from_uid` = a.`user_id` LEFT JOIN `users` b ON `owner_history_to_uid` = b.`user_id` WHERE `owner_history_cid` = '%d'", chan->channel_id);
res = mysql_use();
if(mysql_num_rows(res)) {
- reply(getTextBot(), user, "NS_INFO_OWNERLOG", chan->name);
+ reply(textclient, user, "NS_INFO_OWNERLOG", chan->name);
time_t rawtime;
struct tm *timeinfo;
char timeBuf[80];
rawtime = (time_t) atol(row[0]);
timeinfo = localtime(&rawtime);
strftime(timeBuf, 80, "%c", timeinfo);
- reply(getTextBot(), user, "NS_INFO_OWNERCHANGE", row[1], row[2], timeBuf);
+ reply(textclient, user, "NS_INFO_OWNERCHANGE", row[1], row[2], timeBuf);
}
}
}