aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_nickflood.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-09-29 12:01:29 +0100
committerGravatar Sadie Powell2022-09-29 12:36:01 +0100
commit89537ed2ab22fcedb25e0378bd2c18e392911c0c (patch)
tree4cdea30cb16c0a044d80ba4bab8ef9a645c90824 /src/modules/m_nickflood.cpp
parentUse NOMINMAX on Windows and undefine error in the log header. (diff)
Fix various cases of the &* being next to the name instead of type.
Diffstat (limited to 'src/modules/m_nickflood.cpp')
-rw-r--r--src/modules/m_nickflood.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_nickflood.cpp b/src/modules/m_nickflood.cpp
index 9e13975d1..c671baf85 100644
--- a/src/modules/m_nickflood.cpp
+++ b/src/modules/m_nickflood.cpp
@@ -149,7 +149,7 @@ public:
{
for (const auto* memb : user->chans)
{
- nickfloodsettings *f = nf.ext.Get(memb->chan);
+ nickfloodsettings* f = nf.ext.Get(memb->chan);
if (f)
{
ModResult res = CheckExemption::Call(exemptionprov, user, memb->chan, "nickflood");
@@ -180,14 +180,14 @@ public:
/*
* XXX: HACK: We do the increment on the *POST* event here (instead of all together) because we have no way of knowing whether other modules would block a nickchange.
*/
- void OnUserPostNick(User* user, const std::string &oldnick) override
+ void OnUserPostNick(User* user, const std::string& oldnick) override
{
if (isdigit(user->nick[0])) /* allow switches to UID */
return;
for (const auto* memb : user->chans)
{
- nickfloodsettings *f = nf.ext.Get(memb->chan);
+ nickfloodsettings* f = nf.ext.Get(memb->chan);
if (f)
{
ModResult res = CheckExemption::Call(exemptionprov, user, memb->chan, "nickflood");