diff options
author | Haru <haru@dotalux.com> | 2015-08-11 02:16:59 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-08-15 00:51:45 +0200 |
commit | 5efc9f173f6905da39f3037c278e0e880e82ca35 (patch) | |
tree | 817b3d13d20a3fe99fe4d7465b22148b9ad66dd3 /src/map | |
parent | 7c52605cabb4f5447055344733d69555c1948956 (diff) | |
download | hercules-5efc9f173f6905da39f3037c278e0e880e82ca35.tar.gz hercules-5efc9f173f6905da39f3037c278e0e880e82ca35.tar.bz2 hercules-5efc9f173f6905da39f3037c278e0e880e82ca35.tar.xz hercules-5efc9f173f6905da39f3037c278e0e880e82ca35.zip |
Removed some unnecessary shared symbols, already present in interfaces
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/HPMmap.c | 6 | ||||
-rw-r--r-- | src/map/map.c | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/src/map/HPMmap.c b/src/map/HPMmap.c index 9029a6a78..a974f60ce 100644 --- a/src/map/HPMmap.c +++ b/src/map/HPMmap.c @@ -136,9 +136,9 @@ 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); + plugin->hpi->addCommand = atcommand->create; + plugin->hpi->addScript = script->addScript; + plugin->hpi->addPCGPermission = HPM_map_add_group_permission; } bool HPM_map_add_atcommand(char *name, AtCommandFunc func) { diff --git a/src/map/map.c b/src/map/map.c index 9a6c8b70b..e05e77f46 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -5662,10 +5662,6 @@ void map_hp_symbols(void) { #endif HPM->share(mapit,"mapit"); HPM->share(mapindex,"mapindex"); - /* specific */ - HPM->share(atcommand->create,"addCommand"); - HPM->share(script->addScript,"addScript"); - HPM->share(HPM_map_add_group_permission,"addGroupPermission"); } void map_load_defaults(void) { |