summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h2
-rw-r--r--include/modules.h14
2 files changed, 16 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index c81efb992..d88e25a1f 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -114,4 +114,6 @@ void kill_link(userrec *user,const char* r);
int usercount(chanrec *c);
void call_handler(const char* commandname,char **parameters, int pcnt, userrec *user);
void send_network_quit(const char* nick, const char* reason);
+void ChangeName(userrec* user, const char* gecos);
+void ChangeDisplayedHost(userrec* user, const char* host);
diff --git a/include/modules.h b/include/modules.h
index 91688b622..1db17b291 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -471,6 +471,20 @@ class Server : public classbase
* used for privilage checks, etc.
*/
virtual void CallCommandHandler(std::string commandname, char** parameters, 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, 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, std::string gecos);
};
/** Allows reading of values from configuration files