diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-25 19:02:18 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-25 19:02:18 +0000 |
commit | 1a124bb23ab6b04ced9e2fb762423a0260882841 (patch) | |
tree | 5ab00ed5734cdf95873098d89e9a2aaef32ac4e4 /include | |
parent | a93e436b039fa86345759b9a29243fe09fb54bcf (diff) |
Add userrec::ChangeIdent (which we were missing) which can emulate the quit/rejoin same as ChangeDisplayedHost
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5022 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/users.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/users.h b/include/users.h index 3b1c2a3ec..83ea9bf3f 100644 --- a/include/users.h +++ b/include/users.h @@ -685,12 +685,22 @@ class userrec : public connection /** Change the displayed host of a user. * ALWAYS use this function, rather than writing userrec::dhost directly, * as this triggers module events allowing the change to be syncronized to - * remote servers. + * remote servers. This will also emulate a QUIT and rejoin (where configured) + * before setting their host field. * @param host The new hostname to set * @return True if the change succeeded, false if it didn't */ bool ChangeDisplayedHost(const char* host); + /** Change the ident (username) of a user. + * ALWAYS use this function, rather than writing userrec::ident directly, + * as this correctly causes the user to seem to quit (where configured) + * before setting their ident field. + * @param host The new ident to set + * @return True if the change succeeded, false if it didn't + */ + bool ChangeIdent(const char* newident); + /** Change a users realname field. * ALWAYS use this function, rather than writing userrec::fullname directly, * as this triggers module events allowing the change to be syncronized to |