summaryrefslogtreecommitdiff
path: root/include/fakeuser.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/fakeuser.h')
-rw-r--r--include/fakeuser.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/fakeuser.h b/include/fakeuser.h
new file mode 100644
index 000000000..5d62b7060
--- /dev/null
+++ b/include/fakeuser.h
@@ -0,0 +1,31 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
+ *
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __FAKEUSER_H__
+#define __FAKEUSER_H__
+
+#include "users.h"
+
+class CoreExport FakeUser : public User
+{
+ public:
+ FakeUser(InspIRCd* Instance) : User(Instance, "!")
+ {
+ SetFd(FD_MAGIC_NUMBER);
+ }
+
+ virtual const std::string GetFullHost() { return server; }
+ virtual const std::string GetFullRealHost() { return server; }
+};
+
+#endif