summaryrefslogtreecommitdiff
path: root/modules/cs_statusupdate.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-01-24 12:34:03 +0000
committerSadie Powell <sadie@witchery.services>2024-01-24 12:34:34 +0000
commit484160eb4ed560eeda97c94a42dd8e31431ab251 (patch)
tree03600af16b55fa2f268904d7a42a8b87f86c09f4 /modules/cs_statusupdate.cpp
parent7ac1fe58478d58e2480b6919c4abf3a82929169c (diff)
Shuffle modules around a bit.
Diffstat (limited to 'modules/cs_statusupdate.cpp')
-rw-r--r--modules/cs_statusupdate.cpp68
1 files changed, 0 insertions, 68 deletions
diff --git a/modules/cs_statusupdate.cpp b/modules/cs_statusupdate.cpp
deleted file mode 100644
index ed7469501..000000000
--- a/modules/cs_statusupdate.cpp
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- *
- * (C) 2003-2024 Anope Team
- * Contact us at team@anope.org
- *
- * Please read COPYING and README for further details.
- */
-
-#include "module.h"
-
-class StatusUpdate final
- : public Module
-{
-public:
- StatusUpdate(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
- {
-
- }
-
- void OnAccessAdd(ChannelInfo *ci, CommandSource &, ChanAccess *access) override
- {
- if (ci->c)
- {
- for (const auto &[_, uc] : ci->c->users)
- {
- User *user = uc->user;
-
- ChannelInfo *next;
- if (user->server != Me && access->Matches(user, user->Account(), next))
- {
- AccessGroup ag = ci->AccessFor(user);
-
- for (auto *cms : ModeManager::GetStatusChannelModesByRank())
- {
- if (!ag.HasPriv("AUTO" + cms->name))
- ci->c->RemoveMode(NULL, cms, user->GetUID());
- }
- ci->c->SetCorrectModes(user, true);
- }
- }
- }
- }
-
- void OnAccessDel(ChannelInfo *ci, CommandSource &, ChanAccess *access) override
- {
- if (ci->c)
- {
- for (const auto &[_, uc] : ci->c->users)
- {
- User *user = uc->user;
-
- ChannelInfo *next;
- if (user->server != Me && access->Matches(user, user->Account(), next))
- {
- AccessGroup ag = ci->AccessFor(user);
-
- for (auto *cms : ModeManager::GetStatusChannelModesByRank())
- {
- if (!ag.HasPriv("AUTO" + cms->name))
- ci->c->RemoveMode(NULL, cms, user->GetUID());
- }
- }
- }
- }
- }
-};
-
-MODULE_INIT(StatusUpdate)