summaryrefslogtreecommitdiff
path: root/src/map/charcommand.c
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-07 12:55:00 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-07 12:55:00 +0000
commit322bbe35455b4c423ca8a1ff695a2c68808f5be9 (patch)
tree139a1df58651e64020d0bf05ef4f999614a4996b /src/map/charcommand.c
parentb4ffebc9d89208acff34c35793b918e972005baa (diff)
downloadhercules-322bbe35455b4c423ca8a1ff695a2c68808f5be9.tar.gz
hercules-322bbe35455b4c423ca8a1ff695a2c68808f5be9.tar.bz2
hercules-322bbe35455b4c423ca8a1ff695a2c68808f5be9.tar.xz
hercules-322bbe35455b4c423ca8a1ff695a2c68808f5be9.zip
Fixed npc commands atcommand & charcommand not working with a custom command_symbol
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9431 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/charcommand.c')
-rw-r--r--src/map/charcommand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/charcommand.c b/src/map/charcommand.c
index 32290d8fd..de8668828 100644
--- a/src/map/charcommand.c
+++ b/src/map/charcommand.c
@@ -28,7 +28,7 @@
#include "charcommand.h"
#include "atcommand.h"
-static char command_symbol = '#';
+char charcommand_symbol = '#';
extern char *msg_table[1000]; // Server messages (0-499 reserved for GM commands, 500-999 reserved for others)
@@ -216,7 +216,7 @@ CharCommandType charcommand(struct map_session_data* sd, const int level, const
if(p[0] == '|')
p += 3;
- if (*p == command_symbol) { // check first char, try to skip |00 (or something else) [Lance]
+ if (*p == charcommand_symbol) { // check first char, try to skip |00 (or something else) [Lance]
char command[101];
int i = 0;
malloc_set(info, 0, sizeof(CharCommandInfo));
@@ -299,7 +299,7 @@ int charcommand_config_read(const char *cfgName) {
w2[0] != '%' && // symbol of party chat speaking
w2[0] != '$' && // symbol of guild chat speaking
w2[0] != '@') // symbol of atcommand
- command_symbol = w2[0];
+ charcommand_symbol = w2[0];
}
fclose(fp);