1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 11:56:38 +02:00

Merge branch 'anopeng' into anopeng-config

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1425 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Naram Qashat cyberbotx@cyberbotx.com
2008-10-05 21:39:38 +00:00
parent 4e11583205
commit eda321aa90
7 changed files with 15 additions and 11 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
Anope Version S V N
Anope Version 1.7.23
--------------------
10/01 A Added modular database back-end for IGNORE. [#948]
09/18 R Removed password truncating. [ #00]
+1 -1
View File
@@ -1,4 +1,4 @@
Anope Version S V N
Anope Version 1.7.23
--------------------
** ADDED CONFIGURATION DIRECTIVES **
# OSIgnoreDBName [OPTIONAL]
+1 -1
View File
@@ -1,4 +1,4 @@
Anope Version S V N
Anope Version 1.7.23
--------------------
*** New Strings:
PASSWORD_TOO_LONG
+1 -1
View File
@@ -1,4 +1,4 @@
Anope Version S V N
Anope Version 1.7.23
--------------------
- NONE
+6 -6
View File
@@ -73,7 +73,7 @@ char *rdb_quote(char *str)
* update, all rows with active still 0 will be deleted; this is done to
* easily delete old entries from the database.
*/
int rdb_tag_table(char *table)
int rdb_tag_table(const char* table)
{
#ifdef USE_MYSQL
return db_mysql_try("UPDATE %s SET active = 0", table);
@@ -84,7 +84,7 @@ int rdb_tag_table(char *table)
}
/* Be sure to quote all user input in the clause! */
int rdb_tag_table_where(char *table, char *clause)
int rdb_tag_table_where(const char* table, const char* clause)
{
#ifdef USE_MYSQL
return db_mysql_try("UPDATE %s SET active = 0 WHERE %s", table,
@@ -98,7 +98,7 @@ int rdb_tag_table_where(char *table, char *clause)
/*************************************************************************/
/* Empty an entire database table */
int rdb_empty_table(char *table)
int rdb_empty_table(const char* table)
{
#ifdef USE_MYSQL
return db_mysql_try("TRUNCATE TABLE %s", table);
@@ -111,7 +111,7 @@ int rdb_empty_table(char *table)
/*************************************************************************/
/* Clean up a table with 'dirty' records (active = 0) */
int rdb_clean_table(char *table)
int rdb_clean_table(const char* table)
{
#ifdef USE_MYSQL
return db_mysql_try("DELETE FROM %s WHERE active = 0", table);
@@ -121,7 +121,7 @@ int rdb_clean_table(char *table)
}
/* Be sure to quote user input in the clause! */
int rdb_clean_table_where(char *table, char *clause)
int rdb_clean_table_where(const char* table, const char* clause)
{
#ifdef USE_MYSQL
return db_mysql_try("DELETE FROM %s WHERE active = 0 AND (%s)", table,
@@ -136,7 +136,7 @@ int rdb_clean_table_where(char *table, char *clause)
/* Delete specific records from a table. The clause is MySQL syntax, and
* should be all quoted up nicely in the calling code.
*/
int rdb_scrub_table(char *table, char *clause)
int rdb_scrub_table(const char* table, const char* clause)
{
#ifdef USE_MYSQL
return db_mysql_try("DELETE FROM %s WHERE %s", table, clause);
+1 -1
View File
@@ -67,7 +67,7 @@ void send_cmd(const std::string &source, const char *fmt, ...)
if (!source.empty())
{
sockprintf(servsock, ":%s %s\r\n", source.c_str(), buf);
eventprintf(":%s %s", source, buf);
eventprintf(":%s %s", source.c_str(), buf);
if (debug)
alog("debug: Sent: :%s %s", source.c_str(), buf);
}
+4
View File
@@ -13,6 +13,10 @@ VERSION_BUILD=""
# $Log$
#
# BUILD : 1.7.23 (1465)
# BUGS :
# NOTES : Anope 1.7.23 Release
#
# BUILD : 1.7.22 (1464)
# BUGS : 951
# NOTES : Applied patch by katsklaw to add missing optional parameters to OS MODLIST help.