diff options
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 |