#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[] = {
{
/* 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();
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;
}
}