From f1651c905a83742f125ce9ea1383e411b090a9a9 Mon Sep 17 00:00:00 2001 From: Valery V Yatsko Date: Sat, 16 Aug 2008 23:34:32 +0400 Subject: [PATCH] fixed chm_adminonly extension - IsOperAdmin replaced with IsAdmin.. hm.. but possibly we need to allow hidden opers/admins to enter protected channels? --- extensions/chm_adminonly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/chm_adminonly.c b/extensions/chm_adminonly.c index f018de20..9380c3df 100644 --- a/extensions/chm_adminonly.c +++ b/extensions/chm_adminonly.c @@ -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; }