]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - extensions/chm_operonly.c
Add description for LOCOPS message.
[irc/rqf/shadowircd.git] / extensions / chm_operonly.c
index 1ba7aafa3d23a41974000e2ceb73c532628acd6c..4912e5a7488eacefd39e96b7edbed816cbae1e8b 100644 (file)
@@ -10,8 +10,6 @@
 #include "numeric.h"
 #include "chmode.h"
 
-/* gcc -fPIC -DPIC -shared  -I. -I../include -I../libratbox/include   -O0 -Wall -std=gnu99 -g  -DIRCD_PREFIX=\"/home/dwr/build/charybdis\" chm_operonly.c -o chm_operonly.so */
-
 static void h_can_join(hook_data_channel *);
 
 mapi_hfn_list_av1 operonly_hfnlist[] = {
@@ -30,7 +28,7 @@ _modinit(void)
 {
        /* add the channel mode to the available slot */
        chmode_table['O'].mode_type = find_cflag_slot();
-       chmode_table['O'].set_func = chm_simple;
+       chmode_table['O'].set_func = chm_staff;
 
        construct_noparam_modes();
 
@@ -60,7 +58,7 @@ h_can_join(hook_data_channel *data)
        struct Channel *chptr = data->chptr;
 
        if((chptr->mode.mode & chmode_flags['O']) && !IsOper(source_p)) {
-               sendto_one_notice(source_p, ":Only IRC Operators could join this channel!");
+               sendto_one_numeric(source_p, 520, "%s :Cannot join channel (+O) - you are not an IRC operator", chptr->chname);
                data->approved = ERR_CUSTOM;
        }
 }