summaryrefslogtreecommitdiff
path: root/modules/pseudoclients
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-05 03:30:08 -0400
committerAdam <Adam@anope.org>2013-05-05 03:30:08 -0400
commit57c2b65f08c9c0658003a74a32c6506829e12b0b (patch)
tree49883b790ed9f7cd395e0c6f2f62cc946d743635 /modules/pseudoclients
parenta118946e657b8a137502ff60c1f21c608cb44495 (diff)
Move module header files to include/modules to fix naming conflicts with system headers
Diffstat (limited to 'modules/pseudoclients')
-rw-r--r--modules/pseudoclients/chanserv.h18
-rw-r--r--modules/pseudoclients/global.cpp1
-rw-r--r--modules/pseudoclients/global.h20
-rw-r--r--modules/pseudoclients/memoserv.cpp1
-rw-r--r--modules/pseudoclients/memoserv.h34
-rw-r--r--modules/pseudoclients/nickserv.cpp2
-rw-r--r--modules/pseudoclients/nickserv.h16
7 files changed, 0 insertions, 92 deletions
diff --git a/modules/pseudoclients/chanserv.h b/modules/pseudoclients/chanserv.h
deleted file mode 100644
index e1c3849fd..000000000
--- a/modules/pseudoclients/chanserv.h
+++ /dev/null
@@ -1,18 +0,0 @@
-#ifndef CHANSERV_H
-#define CHANSERV_H
-
-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;
-};
-
-#endif // CHANSERV_H
-
diff --git a/modules/pseudoclients/global.cpp b/modules/pseudoclients/global.cpp
index 837200e5d..501b02194 100644
--- a/modules/pseudoclients/global.cpp
+++ b/modules/pseudoclients/global.cpp
@@ -12,7 +12,6 @@
/*************************************************************************/
#include "module.h"
-#include "global.h"
class MyGlobalService : public GlobalService
{
diff --git a/modules/pseudoclients/global.h b/modules/pseudoclients/global.h
deleted file mode 100644
index 52afc4a23..000000000
--- a/modules/pseudoclients/global.h
+++ /dev/null
@@ -1,20 +0,0 @@
-#ifndef GLOBAL_H
-#define GLOBAL_H
-
-class GlobalService : public Service
-{
- public:
- GlobalService(Module *m) : Service(m, "GlobalService", "Global")
- {
- }
-
- /** Send out a global message to all users
- * @param sender Our client which should send the global
- * @param source The sender of the global
- * @param message The message
- */
- virtual void SendGlobal(const BotInfo *sender, const Anope::string &source, const Anope::string &message) = 0;
-};
-
-#endif // GLOBAL_H
-
diff --git a/modules/pseudoclients/memoserv.cpp b/modules/pseudoclients/memoserv.cpp
index 46ad82194..499722686 100644
--- a/modules/pseudoclients/memoserv.cpp
+++ b/modules/pseudoclients/memoserv.cpp
@@ -12,7 +12,6 @@
/*************************************************************************/
#include "module.h"
-#include "memoserv.h"
static bool SendMemoMail(NickCore *nc, MemoInfo *mi, Memo *m)
{
diff --git a/modules/pseudoclients/memoserv.h b/modules/pseudoclients/memoserv.h
deleted file mode 100644
index d35d3f8a0..000000000
--- a/modules/pseudoclients/memoserv.h
+++ /dev/null
@@ -1,34 +0,0 @@
-#ifndef MEMOSERV_H
-#define MEMOSERV_H
-
-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 anythin.
- * @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;
-};
-
-#endif // MEMOSERV_H
-
diff --git a/modules/pseudoclients/nickserv.cpp b/modules/pseudoclients/nickserv.cpp
index 3f4250fb6..1177f9327 100644
--- a/modules/pseudoclients/nickserv.cpp
+++ b/modules/pseudoclients/nickserv.cpp
@@ -12,13 +12,11 @@
/*************************************************************************/
#include "module.h"
-#include "nickserv.h"
class NickServCollide;
typedef std::map<Anope::string, NickServCollide *> nickservcollides_map;
-static ServiceReference<NickServService> nickserv("NickServService", "NickServ");
static nickservcollides_map NickServCollides;
/** Timer for colliding nicks to force people off of nicknames
diff --git a/modules/pseudoclients/nickserv.h b/modules/pseudoclients/nickserv.h
deleted file mode 100644
index b20d6ebd1..000000000
--- a/modules/pseudoclients/nickserv.h
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef NICKSERV_H
-#define NICKSERV_H
-
-class NickServService : public Service
-{
- public:
- NickServService(Module *m) : Service(m, "NickServService", "NickServ")
- {
- }
-
- virtual void Validate(User *u) = 0;
- virtual void Login(User *u, NickAlias *na) = 0;
-};
-
-#endif // NICKSERV_H
-