summaryrefslogtreecommitdiff
path: root/include/users.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-02-14 15:13:27 -0500
committerAdam <Adam@anope.org>2012-02-14 15:13:27 -0500
commita9772cde21407c89abd161d51aff45267f87b1fb (patch)
tree9e57ba6c121d3843888917d968dd4f5d030b57cf /include/users.h
parent086790d6331357022f4da17c76b26b9fc6e2ad90 (diff)
Clean up and reorganize our header files
Diffstat (limited to 'include/users.h')
-rw-r--r--include/users.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/include/users.h b/include/users.h
index 703e1ceb7..a6510235f 100644
--- a/include/users.h
+++ b/include/users.h
@@ -8,6 +8,10 @@
#ifndef USERS_H
#define USERS_H
+#include "anope.h"
+#include "modes.h"
+#include "extensible.h"
+
extern CoreExport Anope::insensitive_map<User *> UserListByNick;
extern CoreExport Anope::map<User *> UserListByUID;
@@ -30,8 +34,9 @@ struct ChannelContainer
typedef std::list<ChannelContainer *> UChannelList;
+
/* Online user and channel data. */
-class CoreExport User : public Extensible
+class CoreExport User : public Base, public Extensible
{
protected:
Anope::string vident;
@@ -50,7 +55,7 @@ class CoreExport User : public Extensible
Anope::string chost; /* User's cloaked hostname */
Anope::string realname; /* Realname */
Anope::string fingerprint; /* SSL Fingerprint */
- sockaddrs ip; /* User's IP */
+ Anope::string ip; /* User's IP */
Server *server; /* Server user is connected to */
time_t timestamp; /* Timestamp of the nick */
time_t my_signon; /* When did _we_ see the user? */
@@ -296,4 +301,19 @@ class CoreExport User : public Extensible
void Kill(const Anope::string &source, const Anope::string &reason);
};
+extern int32_t opcnt;
+extern uint32_t maxusercnt, usercnt;
+extern time_t maxusertime;
+
+extern User *finduser(const Anope::string &nick);
+
+extern User *do_nick(const Anope::string &source, const Anope::string &nick, const Anope::string &username, const Anope::string &host, const Anope::string &server, const Anope::string &realname, time_t ts, const Anope::string &ip, const Anope::string &vhost, const Anope::string &uid, const Anope::string &modes);
+
+extern void do_umode(const Anope::string &user, const Anope::string &modes);
+extern void do_kill(User *user, const Anope::string &reason);
+
+extern bool matches_list(Channel *c, User *user, ChannelModeName mode);
+
+extern Anope::string create_mask(User *u);
+
#endif // USERS_H