/** Holds an entry for a ban list, exemption list, or invite list.
* This class contains a single element in a channel list, such as a banlist.
*/
/** Holds an entry for a ban list, exemption list, or invite list.
* This class contains a single element in a channel list, such as a banlist.
*/
* @param user The user to delete
* @return number of users left on the channel after deletion of the user
*/
* @param user The user to delete
* @return number of users left on the channel after deletion of the user
*/
* @return The number of users left on the channel. If this is zero
* when the method returns, you MUST delete the Channel immediately!
*/
* @return The number of users left on the channel. If this is zero
* when the method returns, you MUST delete the Channel immediately!
*/
/** Make the server kick user from this channel with the given reason.
* @param user The user being kicked (must be on this channel)
/** Make the server kick user from this channel with the given reason.
* @param user The user being kicked (must be on this channel)
* @return The number of users left on the channel. If this is zero
* when the method returns, you MUST delete the Channel immediately!
*/
* @return The number of users left on the channel. If this is zero
* when the method returns, you MUST delete the Channel immediately!
*/
/** Part a user from this channel with the given reason.
* If the reason field is NULL, no reason will be sent.
/** Part a user from this channel with the given reason.
* If the reason field is NULL, no reason will be sent.
* @return The number of users left on the channel. If this is zero
* when the method returns, you MUST delete the Channel immediately!
*/
* @return The number of users left on the channel. If this is zero
* when the method returns, you MUST delete the Channel immediately!
*/
/* Join a user to a channel. May be a channel that doesnt exist yet.
* @param user The user to join to the channel.
/* Join a user to a channel. May be a channel that doesnt exist yet.
* @param user The user to join to the channel.
* @param text A printf-style format string which builds the output line without prefix
* @param ... Zero or more POD type
*/
* @param text A printf-style format string which builds the output line without prefix
* @param ... Zero or more POD type
*/
- void WriteChannelWithServ(const char* ServName, const char* text, ...) CUSTOM_PRINTF(3, 4);
+ void WriteChannelWithServ(const std::string& ServName, const char* text, ...) CUSTOM_PRINTF(3, 4);
/** Write to a channel, from a server, using std::string for text
* @param ServName Server name to prefix the line with
* @param text A std::string containing the output line without prefix
*/
/** Write to a channel, from a server, using std::string for text
* @param ServName Server name to prefix the line with
* @param text A std::string containing the output line without prefix
*/
/** Write to all users on a channel except a specific user, using va_args for text.
* Internally, this calls WriteAllExcept().
/** Write to all users on a channel except a specific user, using va_args for text.
* Internally, this calls WriteAllExcept().