diff options
| author | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-07-15 11:53:35 +0000 |
|---|---|---|
| committer | certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-07-15 11:53:35 +0000 |
| commit | 6b5b5084d01fec461403e8e80dc3aedf3b4eb5f1 (patch) | |
| tree | 61132be8a079aad1d4d7cf1e57278e6f57992a39 /src | |
| parent | bf547b2d30a23985fdacbcf2c7104476a2edb522 (diff) | |
# 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
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/bs_fantasy.c | 9 |
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) |
