summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-03-30 23:08:08 -0300
committershennetsind <ind@henn.et>2013-03-30 23:08:08 -0300
commit7ec1e8fdff6adad1979d750774f9003f223bf3ef (patch)
tree65553e83135c5f5f983c106914d0a35ea2f62588 /src/char
parent87373047cd4aaf8b0c2425133b9b907e3ea4d122 (diff)
downloadhercules-7ec1e8fdff6adad1979d750774f9003f223bf3ef.tar.gz
hercules-7ec1e8fdff6adad1979d750774f9003f223bf3ef.tar.bz2
hercules-7ec1e8fdff6adad1979d750774f9003f223bf3ef.tar.xz
hercules-7ec1e8fdff6adad1979d750774f9003f223bf3ef.zip
Hercules Renewal: clif.c complete
Added the last missing functions into the interface, all functions in clif.c are now wired to the interface. http://hercules.ws/board/topic/237-hercules-renewal/ Also shortened clif->displaymessage to clif->message, removed the old clif->message and merged its functionality with clif->disp_overhead (both use the same packet and do the same thing :P) - and a gazillion other stuff: http://hercules.ws/board/topic/316-introducing-hercules-channel-system/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/char')
-rw-r--r--src/char/char.c2
-rw-r--r--src/char/inter.c3
-rw-r--r--src/char/inter.h2
3 files changed, 1 insertions, 6 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 1745c061f..9e2400ddf 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1465,7 +1465,7 @@ int check_char_name(char * name, char * esc_name)
return -2; // control chars in name
// check for reserved names
- if( strcmpi(name, main_chat_nick) == 0 || strcmpi(name, wisp_server_name) == 0 )
+ if( strcmpi(name, wisp_server_name) == 0 )
return -1; // nick reserved for internal server messages
// Check Authorised letters/symbols in the name of the character
diff --git a/src/char/inter.c b/src/char/inter.c
index da790e200..dec217d02 100644
--- a/src/char/inter.c
+++ b/src/char/inter.c
@@ -43,7 +43,6 @@ char default_codepage[32] = ""; //Feature by irmin.
static struct accreg *accreg_pt;
unsigned int party_share_level = 10;
-char main_chat_nick[16] = "Main";
// recv. packet list
int inter_recv_packet_length[] = {
@@ -731,8 +730,6 @@ static int inter_config_read(const char* cfgName)
party_share_level = atoi(w2);
else if(!strcmpi(w1,"log_inter"))
log_inter = atoi(w2);
- else if(!strcmpi(w1,"main_chat_nick"))
- safestrncpy(main_chat_nick, w2, sizeof(main_chat_nick));
else if(!strcmpi(w1,"import"))
inter_config_read(w2);
}
diff --git a/src/char/inter.h b/src/char/inter.h
index 9f99197eb..e34c54c16 100644
--- a/src/char/inter.h
+++ b/src/char/inter.h
@@ -23,8 +23,6 @@ extern unsigned int party_share_level;
extern Sql* sql_handle;
extern Sql* lsql_handle;
-extern char main_chat_nick[16];
-
int inter_accreg_tosql(int account_id, int char_id, struct accreg *reg, int type);
uint64 inter_chk_lastuid(int8 flag, uint64 value);