From 642b665fb0967dc9dcbaed5f54b52276ea230e12 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 12 Apr 2004 12:54:51 +0000 Subject: Added 'a' amd 'b' server link tokens (change gecos, change host) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@562 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/modules.h') 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 -- cgit v1.2.3