]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - extensions/chm_operonly.c
chm_operonly extension: use Unreal's numeric (520)
[irc/rqf/shadowircd.git] / extensions / chm_operonly.c
index 1ba7aafa3d23a41974000e2ceb73c532628acd6c..5de15b3d43c03f14029b402cb619ee3ea43cd268 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[] = {
@@ -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;
        }
 }