diff options
| author | 2016-03-05 16:46:03 +0100 | |
|---|---|---|
| committer | 2016-03-05 16:46:03 +0100 | |
| commit | 0412378109ae9f618e47b2bb60729c0d8f29fe8d (patch) | |
| tree | d70d970fbde253cdc2e5a47343c758480e9bae71 /src/modules/m_joinflood.cpp | |
| parent | Add Channel::WriteNotice() (diff) | |
| download | inspircd++-0412378109ae9f618e47b2bb60729c0d8f29fe8d.tar.gz inspircd++-0412378109ae9f618e47b2bb60729c0d8f29fe8d.tar.bz2 inspircd++-0412378109ae9f618e47b2bb60729c0d8f29fe8d.zip | |
Send NOTICEs to local channel members with Channel::WriteNotice()
Diffstat (limited to 'src/modules/m_joinflood.cpp')
| -rw-r--r-- | src/modules/m_joinflood.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } } } |
