From 23485ebe3a19483ed491e56876bb2c43a24d46f9 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 14 Apr 2012 01:07:43 +0200 Subject: [PATCH] extensions/roleplay: End floodgrace because this is sent to other users. --- extensions/m_roleplay.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/m_roleplay.c b/extensions/m_roleplay.c index 97a72ab0..df9e76bc 100644 --- a/extensions/m_roleplay.c +++ b/extensions/m_roleplay.c @@ -26,6 +26,7 @@ #include "chmode.h" #include "tgchange.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_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 text2[BUFSIZE]; + if(!IsFloodDone(source_p)) + flood_endgrace(source_p); + if((chptr = find_channel(channel)) == NULL) { sendto_one(source_p, form_str(ERR_NOSUCHCHANNEL), channel);