]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - extensions/chm_adminonly.c
report logfile access issues
[irc/rqf/shadowircd.git] / extensions / chm_adminonly.c
index f018de20724a916611ffc0446dcd0487d4650107..9380c3df7b9fa360c010378e7d92ed9eb1edd3f3 100644 (file)
@@ -44,7 +44,7 @@ h_can_join(hook_data_channel *data)
        struct Client *source_p = data->client;
        struct Channel *chptr = data->chptr;
 
-       if((chptr->mode.mode & chmode_flags['A']) && !IsOperAdmin(source_p)) {
+       if((chptr->mode.mode & chmode_flags['A']) && !IsAdmin(source_p)) {
                sendto_one_numeric(source_p, 519, "%s :Cannot join channel (+A) - you are not an IRC server administrator", chptr->chname);
                data->approved = ERR_CUSTOM;
        }