summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 18:55:51 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 18:55:51 +0000
commitec62d9d1ef9d1f4c1b5dc57764fcb924ea2e1972 (patch)
tree322c2e9474c87fcc2afa4851fad88b6f1853e715 /include
parentbe8d8147373c9d934703868aa047a6c66f10cb42 (diff)
Document all the new methods (eventually there will be more detail)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4893 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/users.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/include/users.h b/include/users.h
index cd12ceec6..11cbd972d 100644
--- a/include/users.h
+++ b/include/users.h
@@ -632,30 +632,65 @@ class userrec : public connection
*/
void WriteCommonExcept(const std::string &text);
+ /** Write a WALLOPS message from this user to all local opers.
+ * If this user is not opered, the function will return without doing anything.
+ */
void WriteWallOps(const char* text, ...);
+ /** Write a WALLOPS message from this user to all local opers.
+ * If this user is not opered, the function will return without doing anything.
+ */
void WriteWallOps(const std::string &text);
+ /** Return true if the user shares at least one channel with another user
+ */
bool SharesChannelWith(userrec *other);
+ /** 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.
+ */
bool ChangeDisplayedHost(const char* host);
+ /** 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
+ * remote servers.
+ */
bool ChangeName(const char* gecos);
+ /** Return the total number of channels this user is on.
+ */
int CountChannels();
+ /** Send a notice to all local users from this user
+ */
void NoticeAll(char* text, ...);
+ /** Compile a channel list for this user, and send it to the user 'source'
+ */
std::string ChannelList(userrec* source);
+ /** Split the channel list in cl which came from dest, and spool it to this user
+ */
void SplitChanList(userrec* dest, const std::string &cl);
+ /** Remove this user from all channels they are on, and delete any that are now empty.
+ * This is used by QUIT, and will not send part messages!
+ */
void PurgeEmptyChannels();
+ /** Get the connect class which matches this user's host or IP address
+ */
ConnectClass& GetClass();
+ /** Show the message of the day to this user
+ */
void ShowMOTD();
+ /** Show the server RULES file to this user
+ */
void ShowRULES();
/** Default destructor