summaryrefslogtreecommitdiff
path: root/tools/HPMHookGen
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-04 21:13:19 -0200
committershennetsind <ind@henn.et>2013-11-04 22:32:36 -0200
commit0a965aafde882e905ea71f3bcef8f4ff81c1c327 (patch)
treeab98747ab350cf16847418c68be191db99765a34 /tools/HPMHookGen
parentfa07bc455ebb511defa9623fedc8074d66135c19 (diff)
downloadhercules-0a965aafde882e905ea71f3bcef8f4ff81c1c327.tar.gz
hercules-0a965aafde882e905ea71f3bcef8f4ff81c1c327.tar.bz2
hercules-0a965aafde882e905ea71f3bcef8f4ff81c1c327.tar.xz
hercules-0a965aafde882e905ea71f3bcef8f4ff81c1c327.zip
pc_groups interfaced
The last file without a interface is now no more (date.h doesn't count :P). Modified the way permissions are stored in order to enable plugins to be able to create permissions ( pcg->add_permission("name") [returns permission key] ). Special Thanks to Haruna! Closes #121 Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'tools/HPMHookGen')
-rwxr-xr-xtools/HPMHookGen/HPMHookGen.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/HPMHookGen/HPMHookGen.pl b/tools/HPMHookGen/HPMHookGen.pl
index cf50a9e77..eef490e29 100755
--- a/tools/HPMHookGen/HPMHookGen.pl
+++ b/tools/HPMHookGen/HPMHookGen.pl
@@ -265,6 +265,8 @@ foreach my $file (@files) { # Loop through the xml files
$key = "ircbot";
} elsif ($key =~ /log_interface/) {
$key = "logs";
+ } elsif ($key =~ /pc_groups_interface/) {
+ $key = "pcg";
} else {
$key =~ s/_interface//;
}
@@ -367,6 +369,7 @@ foreach my $file (@files) { # Loop through the xml files
my %exportsymbols = map {
$_ => &{ sub ($) {
return 'battlegrounds' if $_ =~ /^bg$/;
+ return 'pc_groups' if $_ =~ /^pcg$/;
return $_;
}}($_);
} @keys;