fixed chm_adminonly extension - IsOperAdmin replaced with IsAdmin.. hm.. but possibly we need to allow hidden opers/admins to enter protected

channels?
This commit is contained in:
Valery V Yatsko 2008-08-16 23:34:32 +04:00
parent df33f222b5
commit f1651c905a

View file

@ -44,7 +44,7 @@ h_can_join(hook_data_channel *data)
struct Client *source_p = data->client; struct Client *source_p = data->client;
struct Channel *chptr = data->chptr; 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); sendto_one_numeric(source_p, 519, "%s :Cannot join channel (+A) - you are not an IRC server administrator", chptr->chname);
data->approved = ERR_CUSTOM; data->approved = ERR_CUSTOM;
} }