summaryrefslogtreecommitdiff
path: root/src/char/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-14 23:30:25 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-14 23:30:25 +0300
commit8ab5a7a975aa87ef21619e960d5ca63f0eef3732 (patch)
tree861ea369a0dd41c95e1f61988b5fdafb85c5a784 /src/char/init.c
parentebf09a72221e05de9cd60e3df806f54e29329f4c (diff)
downloadevol-hercules-8ab5a7a975aa87ef21619e960d5ca63f0eef3732.tar.gz
evol-hercules-8ab5a7a975aa87ef21619e960d5ca63f0eef3732.tar.bz2
evol-hercules-8ab5a7a975aa87ef21619e960d5ca63f0eef3732.tar.xz
evol-hercules-8ab5a7a975aa87ef21619e960d5ca63f0eef3732.zip
char: send correct error code if on char creation class or sex is wrong.
Diffstat (limited to 'src/char/init.c')
-rw-r--r--src/char/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/char/init.c b/src/char/init.c
index 8e2d34a..440b81c 100644
--- a/src/char/init.c
+++ b/src/char/init.c
@@ -61,6 +61,7 @@ HPExport void plugin_init (void)
addHookPre("chr->parse_char_login_map_server", echar_parse_char_login_map_server);
addHookPre("chr->parse_char_create_new_char", echar_parse_char_create_new_char);
+ addHookPre("chr->creation_failed", echar_creation_failed);
}
HPExport void server_preinit (void)