summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-12 12:54:51 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-12 12:54:51 +0000
commit642b665fb0967dc9dcbaed5f54b52276ea230e12 (patch)
tree9e6259b4e496c372826da36fc27bb772f157c3ff /include/modules.h
parentf98a8569791abd5d021285871c93e7e3d7f04446 (diff)
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
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h14
1 files changed, 14 insertions, 0 deletions
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