From 0b070b52bc8e8ceb52388e45cea90f4add119c4f Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 11 Jul 2008 21:15:02 +0000 Subject: Convert API to use std::string, fixes my slight bug from earlier and looks tidier git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9956 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/channels.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/channels.h') diff --git a/include/channels.h b/include/channels.h index bf06e760a..67a76f73b 100644 --- a/include/channels.h +++ b/include/channels.h @@ -349,11 +349,11 @@ class CoreExport Channel : public Extensible /** Part a user from this channel with the given reason. * If the reason field is NULL, no reason will be sent. * @param user The user who is parting (must be on this channel) - * @param reason The (optional) part reason + * @param reason The part reason * @return The number of users left on the channel. If this is zero * when the method returns, you MUST delete the Channel immediately! */ - long PartUser(User *user, const char* reason = NULL); + long PartUser(User *user, std::string &reason); /* Join a user to a channel. May be a channel that doesnt exist yet. * @param user The user to join to the channel. -- cgit v1.2.3