diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-25 21:46:49 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-25 21:46:49 +0000 |
commit | 495c3a2104cb72fe1d705c2e5403ec76f5207712 (patch) | |
tree | 2573eadc5762622924b763e0586a817103b76d45 | |
parent | 509650b5b1c3c5137b50e4b82dbc1f2a6ed3b141 (diff) | |
download | hercules-495c3a2104cb72fe1d705c2e5403ec76f5207712.tar.gz hercules-495c3a2104cb72fe1d705c2e5403ec76f5207712.tar.bz2 hercules-495c3a2104cb72fe1d705c2e5403ec76f5207712.tar.xz hercules-495c3a2104cb72fe1d705c2e5403ec76f5207712.zip |
- Added a missing escape in logging chats.
- Increased a bit the size of skill-related arrays.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5746 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | src/map/log.c | 3 | ||||
-rw-r--r-- | src/map/map.h | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/map/log.c b/src/map/log.c index e03d5f55e..2722153e7 100644 --- a/src/map/log.c +++ b/src/map/log.c @@ -705,6 +705,7 @@ int log_npc(struct map_session_data *sd, const char *message) int log_chat(char *type, int type_id, int src_charid, int src_accid, char *map, int x, int y, char *dst_charname, char *message){
#ifndef TXT_ONLY
+ char t_charname[NAME_LENGTH*2];
char t_msg[MESSAGE_SIZE*2+1]; //Chat line fully escaped, with an extra space just in case.
#else
FILE *logfp;
@@ -717,7 +718,7 @@ int log_chat(char *type, int type_id, int src_charid, int src_accid, char *map, #ifndef TXT_ONLY
if(log_config.sql_logs > 0){
sprintf(tmp_sql, "INSERT DELAYED INTO `%s` (`time`, `type`, `type_id`, `src_charid`, `src_accountid`, `src_map`, `src_map_x`, `src_map_y`, `dst_charname`, `message`) VALUES (NOW(), '%s', '%d', '%d', '%d', '%s', '%d', '%d', '%s', '%s')",
- log_config.log_chat_db, type, type_id, src_charid, src_accid, map, x, y, dst_charname, jstrescapecpy(t_msg, (char *)message));
+ log_config.log_chat_db, type, type_id, src_charid, src_accid, map, x, y, jstrescapecpy(t_charname, dst_charname), jstrescapecpy(t_msg, message));
if(mysql_query(&logmysql_handle, tmp_sql)){
ShowSQL("DB error - %s\n",mysql_error(&logmysql_handle));
diff --git a/src/map/map.h b/src/map/map.h index 633c7d5da..a410870d9 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -32,9 +32,9 @@ #define SC_COMMON_MAX 10
#define MAX_SKILL_LEVEL 100
-#define MAX_SKILLUNITGROUP 16
-#define MAX_SKILLUNITGROUPTICKSET 16
-#define MAX_SKILLTIMERSKILL 16
+#define MAX_SKILLUNITGROUP 25
+#define MAX_SKILLUNITGROUPTICKSET 25
+#define MAX_SKILLTIMERSKILL 15
#define MAX_MOBSKILL 50
#define MAX_MOB_LIST_PER_MAP 128
#define MAX_EVENTQUEUE 2
|