#include "modules.h"
#include "s_conf.h"
#include "cache.h"
+#include "ratelimit.h"
static int m_motd(struct Client *, struct Client *, int, const char **);
static int mo_motd(struct Client *, struct Client *, int, const char **);
/*
** m_motd
-** parv[0] = sender prefix
** parv[1] = servername
*/
static int
{
static time_t last_used = 0;
- if((last_used + ConfigFileEntry.pace_wait) > rb_current_time())
+ if((last_used + ConfigFileEntry.pace_wait) > rb_current_time() || !ratelimit_client(source_p, 6))
{
/* safe enough to give this on a local connect only */
sendto_one(source_p, form_str(RPL_LOAD2HI),
/*
** mo_motd
-** parv[0] = sender prefix
** parv[1] = servername
*/
static int