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

BUILD : 1.7.1 (53) BUGS : 10 NOTES : Fixed previous MySQL fix for saving nick passwords.

git-svn-id: svn://svn.anope.org/anope/trunk@53 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@34 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b
2004-04-16 18:07:23 +00:00
parent 9f73d552c4
commit 562a146eb2
3 changed files with 13 additions and 6 deletions
+1
View File
@@ -1,6 +1,7 @@
Anope Version SVN
--------------------
Provided by Anope Dev. <dev@anope.org>
2004/04/16 Fixed broken password saves to MySQL (Bug #11)
Anope Version 1.7.1
--------------------
+7 -5
View File
@@ -208,11 +208,12 @@ void db_mysql_save_ns_req(NickRequest * nr)
char *db_mysql_secure(char *pass)
{
char epass[BUFSIZE];
#ifdef USE_ENCRYPTION
/* If we use the builtin encryption don't double encrypt! */
return sstrdup(pass);
snprintf(epass, sizeof(epass), "'%s'", pass);
#else
char epass[BUFSIZE];
if (!pass) {
snprintf(epass, sizeof(epass), "''");
@@ -229,9 +230,10 @@ char *db_mysql_secure(char *pass)
MysqlSecure);
}
return sstrdup(epass);
#endif
return sstrdup(epass);
}
/*************************************************************************/
@@ -256,7 +258,7 @@ void db_mysql_save_ns_core(NickCore * nc)
/* Let's take care of the core itself */
/* Update the existing records */
snprintf(sqlcmd, MAX_SQL_BUF,
"UPDATE anope_ns_core SET pass='%s',email='%s',greet='%s',icq='%d',url='%s',flags='%d',"
"UPDATE anope_ns_core SET pass=%s,email='%s',greet='%s',icq='%d',url='%s',flags='%d',"
"language='%d',accesscount='%d',memocount='%d',memomax='%d',channelcount='%d'"
",channelmax='%d',active='1' WHERE display='%s'",
epass, cemail, cgreet, nc->icq, curl, nc->flags,
@@ -414,7 +416,7 @@ void db_mysql_save_cs_info(ChannelInfo * ci)
/* Let's take care of the core itself */
snprintf(sqlcmd, MAX_SQL_BUF,
"UPDATE anope_cs_info SET founder='%s',successor='%s',founderpass='%s',"
"UPDATE anope_cs_info SET founder=%s,successor='%s',founderpass='%s',"
"descr='%s',url='%s',email='%s',time_registered='%d',last_used='%d',"
"last_topic='%s',last_topic_setter='%s',last_topic_time='%d',flags='%d',"
"forbidby='%s',forbidreason='%s',bantype='%d',accesscount='%d',"
+5 -1
View File
@@ -8,11 +8,15 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="1"
VERSION_BUILD="51"
VERSION_BUILD="53"
VERSION_EXTRA=""
# $Log$
#
# BUILD : 1.7.1 (53)
# BUGS : 10
# NOTES : Fixed previous MySQL fix for saving nick passwords.
#
# BUILD : 1.7.1 (51)
# NOTES : SVN Framework.
#