summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-25 13:42:19 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-25 13:42:19 +0000
commita93e436b039fa86345759b9a29243fe09fb54bcf (patch)
treeabf035468c0f2e1c11fa2cbd55b28cd632a21912 /include
parent550c076c9abdcff0751ae10a5e4e66aff22db714 (diff)
Add <options:cyclehosts> which allows a user to appear to have quit when their host changes, so that clients/bots can stay synched properly.
It is recommended this option always be on. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5017 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/configreader.h8
-rw-r--r--include/mode.h10
2 files changed, 16 insertions, 2 deletions
diff --git a/include/configreader.h b/include/configreader.h
index 467b5bde3..5c8a66307 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -361,10 +361,14 @@ class ServerConfig : public Extensible
*/
bool SyntaxHints;
+ /** If set to true, users appear to quit then rejoin when their hosts change.
+ * This keeps clients synchronized properly.
+ */
+ bool CycleHosts;
+
ServerConfig(InspIRCd* Instance);
- /** Clears the include stack in preperation for
- * a Read() call.
+ /** Clears the include stack in preperation for a Read() call.
*/
void ClearStack();
diff --git a/include/mode.h b/include/mode.h
index b26c0d9c3..4cdab2884 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -445,6 +445,16 @@ class ModeParser : public classbase
/** This returns the PREFIX=(ohv)@%+ section of the 005 numeric.
*/
std::string BuildPrefixes();
+
+ /** This returns the privilages of a user upon a channel, in the format of a mode change.
+ * For example, if a user has privilages +avh, this will return the string "avh nick nick nick".
+ * This is used by the core when cycling a user to refresh their hostname. You may use it for
+ * similar purposes.
+ * @param user The username to look up
+ * @param channel The channel name to look up the privilages of the user for
+ * @return The mode string.
+ */
+ std::string ModeString(userrec* user, chanrec* channel);
};
/** Command handler class for the MODE command.