summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/bs_fantasy.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/bs_fantasy.c b/src/core/bs_fantasy.c
index 9ea3fe402..7f2ef9e87 100644
--- a/src/core/bs_fantasy.c
+++ b/src/core/bs_fantasy.c
@@ -62,6 +62,15 @@ int do_fantasy(int argc, char **argv)
do {
if (stricmp(argv[0], util->bsname) == 0) {
+ /* This could have been moved to its own module
+ however it would require more coding to handle the pass holders
+ similar to how PROTECT is done
+ */
+ if (!ircd->halfop) {
+ if (!stricmp(argv[0], "halfop") || !stricmp(argv[0], "dehalfop")) {
+ return MOD_CONT;
+ }
+ }
u = finduser(argv[1]);
ci = cs_findchan(argv[2]);
if (!u || !ci)