diff options
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index be8d96b6c..c5f179f24 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -56,6 +56,11 @@ extern char list[MAXBUF]; extern char PrefixQuit[MAXBUF]; extern char DieValue[MAXBUF]; +extern bool AllowHalfop; +extern bool AllowProtect; +extern bool AllowFounder; + + char* give_ops(userrec *user,char *dest,chanrec *chan,int status) { userrec *d; @@ -530,7 +535,7 @@ void process_modes(char **parameters,userrec* user,chanrec *chan,int status, int break; case 'h': - if ((param >= pcnt)) break; + if (((param >= pcnt)) || (!AllowHalfop)) break; if (mdir == 1) { r = give_hops(user,parameters[param++],chan,status); |