extensions/roleplay: End floodgrace because this is sent to other users.
This commit is contained in:
parent
77444dcc1f
commit
23485ebe3a
1 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
||||||
#include "chmode.h"
|
#include "chmode.h"
|
||||||
#include "tgchange.h"
|
#include "tgchange.h"
|
||||||
#include "channel.h"
|
#include "channel.h"
|
||||||
|
#include "packet.h"
|
||||||
|
|
||||||
static int m_scene(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
static int m_scene(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||||
static int m_fsay(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
static int m_fsay(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
|
||||||
|
@ -139,6 +140,9 @@ m_displaymsg(struct Client *source_p, const char *channel, int underline, int ac
|
||||||
char *nick3 = rb_strdup(nick);
|
char *nick3 = rb_strdup(nick);
|
||||||
char text2[BUFSIZE];
|
char text2[BUFSIZE];
|
||||||
|
|
||||||
|
if(!IsFloodDone(source_p))
|
||||||
|
flood_endgrace(source_p);
|
||||||
|
|
||||||
if((chptr = find_channel(channel)) == NULL)
|
if((chptr = find_channel(channel)) == NULL)
|
||||||
{
|
{
|
||||||
sendto_one(source_p, form_str(ERR_NOSUCHCHANNEL), channel);
|
sendto_one(source_p, form_str(ERR_NOSUCHCHANNEL), channel);
|
||||||
|
|
Loading…
Reference in a new issue