From 6b5b5084d01fec461403e8e80dc3aedf3b4eb5f1 Mon Sep 17 00:00:00 2001 From: "certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sat, 15 Jul 2006 11:53:35 +0000 Subject: # BUILD : 1.7.14 (1091) # BUGS : 534 # NOTES : applied trystan's fantasy patch. git-svn-id: svn://svn.anope.org/anope/trunk@1091 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@815 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/bs_fantasy.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/core') 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) -- cgit