]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - extensions/chm_operonly.c
Add hostserv/botserv aliases to the example confs.
[irc/rqf/shadowircd.git] / extensions / chm_operonly.c
index b46fd8ac6b05c94c744b880f947f280d1cf24949..4912e5a7488eacefd39e96b7edbed816cbae1e8b 100644 (file)
@@ -28,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();
 
@@ -58,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;
        }
 }