summaryrefslogtreecommitdiff
path: root/src/char_sql/char.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-07 13:19:12 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-07 13:19:12 +0000
commit32d5d6568057bf8a832e2c8566f3e4147544063b (patch)
tree30b074e51a8b4ca4b4274c3e95373d3cdaccb893 /src/char_sql/char.c
parentfda081264f919912287ce1b0cd2ef4c008912d25 (diff)
downloadhercules-32d5d6568057bf8a832e2c8566f3e4147544063b.tar.gz
hercules-32d5d6568057bf8a832e2c8566f3e4147544063b.tar.bz2
hercules-32d5d6568057bf8a832e2c8566f3e4147544063b.tar.xz
hercules-32d5d6568057bf8a832e2c8566f3e4147544063b.zip
- Removed char_nick2id from char-sql server as it's no longer needed.
- Fixed quitting the map server not properly saving the storage before deleting it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7030 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r--src/char_sql/char.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index 4b5e2be59..1a0d2de74 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -4398,20 +4398,3 @@ int char_married(int pl1,int pl2) {
else
return 0;
}
-
-int char_nick2id (char *name) {
- int char_id = 0;
- sprintf (tmp_sql, "SELECT `char_id` FROM `%s` WHERE `name` = '%s'", char_db, name);
- if (mysql_query (&mysql_handle, tmp_sql)) {
- ShowSQL("DB error - %s\n",mysql_error(&mysql_handle));
- ShowDebug("at %s:%d - %s\n", __FILE__,__LINE__,tmp_sql);
- }
- sql_res = mysql_store_result (&mysql_handle);
- sql_row = sql_res?mysql_fetch_row(sql_res):NULL;
- if (sql_row)
- char_id = atoi (sql_row[0]);
- else
- ShowError ("CHAR: nick2id Failed!\n");
- if (sql_res) mysql_free_result (sql_res);
- return char_id;
-}