summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/message.h3
-rw-r--r--include/modules.h24
-rw-r--r--include/users.h6
3 files changed, 6 insertions, 27 deletions
diff --git a/include/message.h b/include/message.h
index 7d7f4b007..f53f3d9d2 100644
--- a/include/message.h
+++ b/include/message.h
@@ -28,9 +28,6 @@
#include "users.h"
#include "channels.h"
-int c_count(userrec* u);
-void ChangeName(userrec* user, const char* gecos);
-void ChangeDisplayedHost(userrec* user, const char* host);
int isident(const char* n);
int isnick(const char* n);
const char* cmode(userrec *user, chanrec *chan);
diff --git a/include/modules.h b/include/modules.h
index cb105c60e..f35aef0b0 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -84,11 +84,6 @@ class Module;
typedef std::deque<std::string> file_cache;
typedef file_cache string_list;
-/** Holds a list of users in a channel
- */
-typedef std::deque<userrec*> chanuserlist;
-
-
/** Holds a list of 'published features' for modules.
*/
typedef std::map<std::string,Module*> featurelist;
@@ -1472,20 +1467,6 @@ class Server : public Extensible
*/
virtual bool IsValidModuleCommand(const std::string &commandname, int pcnt, userrec* user);
- /** Change displayed hostname of a user.
- * You should always call this method to change a user's host rather than writing directly to the
- * dhost member of userrec, as any change applied via this method will be propogated to any
- * linked servers.
- */
- virtual void ChangeHost(userrec* user, const std::string &host);
-
- /** Change GECOS (fullname) of a user.
- * You should always call this method to change a user's GECOS rather than writing directly to the
- * fullname member of userrec, as any change applied via this method will be propogated to any
- * linked servers.
- */
- virtual void ChangeGECOS(userrec* user, const std::string &gecos);
-
/** Returns true if the servername you give is ulined.
* ULined servers have extra privilages. They are allowed to change nicknames on remote servers,
* change modes of clients which are on remote servers and set modes of channels where there are
@@ -1493,11 +1474,6 @@ class Server : public Extensible
*/
virtual bool IsUlined(const std::string &server);
- /** Fetches the userlist of a channel. This function must be here and not a member of userrec or
- * chanrec due to include constraints.
- */
- virtual chanuserlist GetUsers(chanrec* chan);
-
/** Remove a user's connection to the irc server, but leave their client in existence in the
* user hash. When you call this function, the user's file descriptor will be replaced with the
* value of FD_MAGIC_NUMBER and their old file descriptor will be closed. This idle client will
diff --git a/include/users.h b/include/users.h
index cc7074004..82da66c19 100644
--- a/include/users.h
+++ b/include/users.h
@@ -633,6 +633,12 @@ class userrec : public connection
bool SharesChannelWith(userrec *other);
+ bool ChangeDisplayedHost(const char* host);
+
+ bool ChangeName(const char* gecos);
+
+ int CountChannels();
+
/** Default destructor
*/
virtual ~userrec();