summaryrefslogtreecommitdiff
path: root/include
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
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')
-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