X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/ad7ecd5cbb4b7c54b9a111f79f16f19c97b054d2..d4f7eb4ce6a0c5a703ddb0f5f5bfaf5d2037e605:/modules/m_knock.c diff --git a/modules/m_knock.c b/modules/m_knock.c index 969595de..29cc3e5f 100644 --- a/modules/m_knock.c +++ b/modules/m_knock.c @@ -35,6 +35,7 @@ #include "modules.h" #include "s_serv.h" #include "supported.h" +#include "s_newconf.h" static const char knock_desc[] = "Provides the KNOCK command to ask for an invite to an invite-only channel"; @@ -142,7 +143,7 @@ m_knock(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_ * allow one knock per user per knock_delay * allow one knock per channel per knock_delay_channel */ - if(!IsOper(source_p) && + if(!IsOperGeneral(source_p) && (source_p->localClient->last_knock + ConfigChannel.knock_delay) > rb_current_time()) { sendto_one(source_p, form_str(ERR_TOOMANYKNOCK),