* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
- * $Id: m_knock.c 3570 2007-09-09 19:19:23Z jilles $
*/
#include "stdinc.h"
#include "modules.h"
#include "s_serv.h"
+struct module_modes ModuleModes;
+
static int m_knock(struct Client *, struct Client *, int, const char **);
struct Message knock_msgtab = {
DECLARE_MODULE_AV1(knock, NULL, NULL, knock_clist, NULL, NULL, "$Revision: 3570 $");
/* m_knock
- * parv[0] = sender prefix
* parv[1] = channel
*
* The KNOCK command has the following syntax:
chptr->last_knock = rb_current_time();
if(ConfigChannel.use_knock)
- sendto_channel_local(chptr->mode.mode & MODE_FREEINVITE ? ALL_MEMBERS : ONLY_CHANOPS,
+ sendto_channel_local(chptr->mode.mode & ModuleModes.MODE_FREEINVITE ? ALL_MEMBERS : ONLY_CHANOPS,
chptr, form_str(RPL_KNOCK),
me.name, name, name, source_p->name,
source_p->username, source_p->host);