From 0412378109ae9f618e47b2bb60729c0d8f29fe8d Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 5 Mar 2016 16:46:03 +0100 Subject: Send NOTICEs to local channel members with Channel::WriteNotice() --- src/modules/m_joinflood.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_joinflood.cpp') diff --git a/src/modules/m_joinflood.cpp b/src/modules/m_joinflood.cpp index 56e109c1a..56131f0be 100644 --- a/src/modules/m_joinflood.cpp +++ b/src/modules/m_joinflood.cpp @@ -159,7 +159,7 @@ class ModuleJoinFlood : public Module { f->clear(); f->lock(); - memb->chan->WriteChannelWithServ((char*)ServerInstance->Config->ServerName.c_str(), "NOTICE %s :This channel has been closed to new users for 60 seconds because there have been more than %d joins in %d seconds.", memb->chan->name.c_str(), f->joins, f->secs); + memb->chan->WriteNotice(InspIRCd::Format("This channel has been closed to new users for 60 seconds because there have been more than %d joins in %d seconds.", f->joins, f->secs)); } } } -- cgit v1.3.1-10-gc9f91