diff options
author | Haru <haru@dotalux.com> | 2015-08-11 01:57:27 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-08-15 00:51:45 +0200 |
commit | 7c52605cabb4f5447055344733d69555c1948956 (patch) | |
tree | 190d940217ed17d231cde1af9feea606fb3842a6 /src/map | |
parent | 30987271e6d3c9eb202997494690ed102adeca87 (diff) | |
download | hercules-7c52605cabb4f5447055344733d69555c1948956.tar.gz hercules-7c52605cabb4f5447055344733d69555c1948956.tar.bz2 hercules-7c52605cabb4f5447055344733d69555c1948956.tar.xz hercules-7c52605cabb4f5447055344733d69555c1948956.zip |
Moved sql_handle into the HPMi interface
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/HPMmap.c | 1 | ||||
-rw-r--r-- | src/map/map.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/map/HPMmap.c b/src/map/HPMmap.c index 7600d3d0c..9029a6a78 100644 --- a/src/map/HPMmap.c +++ b/src/map/HPMmap.c @@ -135,6 +135,7 @@ bool HPM_map_grabHPData(struct HPDataOperationStorage *ret, enum HPluginDataType } void HPM_map_plugin_load_sub(struct hplugin *plugin) { + plugin->hpi->sql_handle = map->mysql_handle; plugin->hpi->addCommand = HPM->import_symbol("addCommand",plugin->idx); plugin->hpi->addScript = HPM->import_symbol("addScript",plugin->idx); plugin->hpi->addPCGPermission = HPM->import_symbol("addGroupPermission",plugin->idx); diff --git a/src/map/map.c b/src/map/map.c index 115ad510d..9a6c8b70b 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -5662,8 +5662,6 @@ void map_hp_symbols(void) { #endif HPM->share(mapit,"mapit"); HPM->share(mapindex,"mapindex"); - /* sql link */ - HPM->share(map->mysql_handle,"sql_handle"); /* specific */ HPM->share(atcommand->create,"addCommand"); HPM->share(script->addScript,"addScript"); |