]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/channels.h
Extract command line option parsing to a function.
[user/henk/code/inspircd.git] / include / channels.h
index 0557a5898b5974b74b7334eddc7f28f97f5d49a5..5957ae6685a6fac2b878b86337a0e852a595f27d 100644 (file)
@@ -235,7 +235,6 @@ class CoreExport Channel : public Extensible
        /** Write to all users on a channel except some users
         * @param protoev Event to send, may contain any number of messages.
         * @param status The status of the users to write to, e.g. '@' or '%'. Use a value of 0 to write to everyone
-        * @param text A std::string containing the output line without prefix
         * @param except_list List of users not to send to
         */
        void Write(ClientProtocol::Event& protoev, char status = 0, const CUList& except_list = CUList());
@@ -244,17 +243,16 @@ class CoreExport Channel : public Extensible
         * @param protoevprov Protocol event provider for the message.
         * @param msg Message to send.
         * @param status The status of the users to write to, e.g. '@' or '%'. Use a value of 0 to write to everyone
-        * @param text A std::string containing the output line without prefix
         * @param except_list List of users not to send to
         */
        void Write(ClientProtocol::EventProvider& protoevprov, ClientProtocol::Message& msg, char status = 0, const CUList& except_list = CUList());
 
        /** Return the channel's modes with parameters.
-        * @param showkey If this is set to true, the actual key is shown,
-        * otherwise it is replaced with '<KEY>'
+        * @param showsecret If this is set to true, the value of secret parameters
+        * are shown, otherwise they are replaced with '<name>'.
         * @return The channel mode string
         */
-       const char* ChanModes(bool showkey);
+       const char* ChanModes(bool showsecret);
 
        /** Get the value of a users prefix on this channel.
         * @param user The user to look up
@@ -285,8 +283,9 @@ class CoreExport Channel : public Extensible
 
        /** Write a NOTICE to all local users on the channel
         * @param text Text to send
+        * @param status The minimum status rank to send this message to.
         */
-       void WriteNotice(const std::string& text);
+       void WriteNotice(const std::string& text, char status = 0);
 };
 
 inline bool Channel::HasUser(User* user)