summaryrefslogtreecommitdiff
path: root/include/modules/pseudoclients
diff options
context:
space:
mode:
Diffstat (limited to 'include/modules/pseudoclients')
-rw-r--r--include/modules/pseudoclients/chanserv.h23
-rw-r--r--include/modules/pseudoclients/global.h75
-rw-r--r--include/modules/pseudoclients/memoserv.h39
-rw-r--r--include/modules/pseudoclients/nickserv.h23
4 files changed, 0 insertions, 160 deletions
diff --git a/include/modules/pseudoclients/chanserv.h b/include/modules/pseudoclients/chanserv.h
deleted file mode 100644
index 5bef94340..000000000
--- a/include/modules/pseudoclients/chanserv.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- *
- * (C) 2011-2025 Anope Team
- * Contact us at team@anope.org
- *
- * Please read COPYING and README for further details.
- */
-
-#pragma once
-
-class ChanServService
- : public Service
-{
-public:
- ChanServService(Module *m) : Service(m, "ChanServService", "ChanServ")
- {
- }
-
- /* Have ChanServ hold the channel, that is, join and set +nsti and wait
- * for a few minutes so no one can join or rejoin.
- */
- virtual void Hold(Channel *c) = 0;
-};
diff --git a/include/modules/pseudoclients/global.h b/include/modules/pseudoclients/global.h
deleted file mode 100644
index 01149d48e..000000000
--- a/include/modules/pseudoclients/global.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- *
- * (C) 2011-2025 Anope Team
- * Contact us at team@anope.org
- *
- * Please read COPYING and README for further details.
- */
-
-#pragma once
-
-#define GLOBAL_NO_MESSAGE _("You do not have any messages queued and did not specify a message to send.")
-#define GLOBAL_QUEUE_CONFLICT _("You can not send a single message while you have messages queued.")
-
-class GlobalService
- : public Service
-{
-public:
- GlobalService(Module *m)
- : Service(m, "GlobalService", "Global")
- {
- }
-
- /** Retrieves the bot which sends global messages unless otherwise specified. */
- virtual Reference<BotInfo> GetDefaultSender() const = 0;
-
- /** Clears any queued messages for the specified account.
- * @param nc The account to clear queued messages for.
- */
- virtual void ClearQueue(NickCore *nc) = 0;
-
- /** Retrieves the size of the messages queue for the specified user.
- * @param nc The account to count queued messages for.
- */
- inline size_t CountQueue(NickCore* nc) const
- {
- auto *q = GetQueue(nc);
- return q ? q->size() : 0;
- }
-
- /** Retrieves the messages queue for the specified user.
- * @param nc The account to retrieve queued messages for.
- */
- virtual const std::vector<Anope::string> *GetQueue(NickCore* nc) const = 0;
-
- /** Queues a message to be sent later.
- * @param nc The account to queue the message for.
- * @param message The message to queue.
- * @return The new number of messages in the queue.
- */
- virtual size_t Queue(NickCore *nc, const Anope::string &message) = 0;
-
- /** Sends a single message to all users on the network.
- * @param message The message to send.
- * @param source If non-nullptr then the source of the message.
- * @param sender If non-nullptr then the bot to send the message from.
- * @param server If non-nullptr then the server to send messages to.
- * @return If the message was sent then true; otherwise, false.
- */
- virtual bool SendSingle(const Anope::string &message, CommandSource *source = nullptr, BotInfo *sender = nullptr, Server *server = nullptr) = 0;
-
- /** Sends a message queue to all users on the network.
- * @param source The source of the message.
- * @param sender If non-nullptr then the bot to send the message from.
- * @param server If non-nullptr then the server to send messages to.
- * @return If the message queue was sent then true; otherwise, false.
- */
- virtual bool SendQueue(CommandSource &source, BotInfo *sender = nullptr, Server *server = nullptr) = 0;
-
- /** Unqueues a message from the message queue.
- * @param nc The account to unqueue the message from.
- * @param idx The index of the item to remove.
- * @return Whether the message was removed from the queue.
- */
- virtual bool Unqueue(NickCore *nc, size_t idx) = 0;
-};
diff --git a/include/modules/pseudoclients/memoserv.h b/include/modules/pseudoclients/memoserv.h
deleted file mode 100644
index c1ff4af7d..000000000
--- a/include/modules/pseudoclients/memoserv.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- *
- * (C) 2011-2025 Anope Team
- * Contact us at team@anope.org
- *
- * Please read COPYING and README for further details.
- */
-
-#pragma once
-
-class MemoServService
- : public Service
-{
-public:
- enum MemoResult
- {
- MEMO_SUCCESS,
- MEMO_INVALID_TARGET,
- MEMO_TOO_FAST,
- MEMO_TARGET_FULL
- };
-
- MemoServService(Module *m) : Service(m, "MemoServService", "MemoServ")
- {
- }
-
- /** Sends a memo.
- * @param source The source of the memo, can be anything.
- * @param target The target of the memo, nick or channel.
- * @param message Memo text
- * @param force true to force the memo, restrictions/delays etc are not checked
- */
- virtual MemoResult Send(const Anope::string &source, const Anope::string &target, const Anope::string &message, bool force = false) = 0;
-
- /** Check for new memos and notify the user if there are any
- * @param u The user
- */
- virtual void Check(User *u) = 0;
-};
diff --git a/include/modules/pseudoclients/nickserv.h b/include/modules/pseudoclients/nickserv.h
deleted file mode 100644
index 2c659501e..000000000
--- a/include/modules/pseudoclients/nickserv.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- *
- * (C) 2011-2025 Anope Team
- * Contact us at team@anope.org
- *
- * Please read COPYING and README for further details.
- */
-
-#pragma once
-
-class NickServService
- : public Service
-{
-public:
- NickServService(Module *m) : Service(m, "NickServService", "NickServ")
- {
- }
-
- virtual void Validate(User *u) = 0;
- virtual void Collide(User *u, NickAlias *na) = 0;
- virtual void Release(NickAlias *na) = 0;
- virtual bool IsGuestNick(const Anope::string &nick) const = 0;
-};