summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-06-24 17:51:14 +0200
committerHaru <haru@dotalux.com>2018-06-30 01:51:09 +0200
commit396d96cedf3b2a6e27daea85ba270f4172a12544 (patch)
treeaeda145430f9eb90df94dbb0e84a406585066f8d /src/char/char.c
parentfb1d9e23b926dc893d3e62c708ef0243077ef392 (diff)
downloadhercules-396d96cedf3b2a6e27daea85ba270f4172a12544.tar.gz
hercules-396d96cedf3b2a6e27daea85ba270f4172a12544.tar.bz2
hercules-396d96cedf3b2a6e27daea85ba270f4172a12544.tar.xz
hercules-396d96cedf3b2a6e27daea85ba270f4172a12544.zip
Move some non-mapif functionality from the mapif interface to the inter_guild interface
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 0e80cf971..2c9c73dd7 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1887,9 +1887,9 @@ int char_delete_char_sql(int char_id)
if( SQL_ERROR == SQL->Query(inter->sql_handle, "SELECT `guild_id` FROM `%s` WHERE `char_id` = '%d'", guild_db, char_id) )
Sql_ShowDebug(inter->sql_handle);
else if( SQL->NumRows(inter->sql_handle) > 0 )
- mapif->parse_BreakGuild(0,guild_id);
+ inter_guild->disband(guild_id);
else if( guild_id )
- inter_guild->leave(guild_id, account_id, char_id);// Leave your guild.
+ inter_guild->leave(guild_id, account_id, char_id, 0, "** Character Deleted **", -1);// Leave your guild.
return 0;
}