From 4e599dd4fbfe5abc0d60a05008344e35e6bc870d Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 11 Jul 2008 14:44:17 +0000 Subject: Fix m_nopartmsg to work via API modification, involves a string copy that won't last too long. Compiles cleanly. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9953 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 7ae620752..ca331e334 100644 --- a/include/modules.h +++ b/include/modules.h @@ -498,11 +498,11 @@ class CoreExport Module : public Extensible * and the details of the channel they have left is available in the variable Channel *channel * @param user The user who is parting * @param channel The channel being parted - * @param partmessage The part message, or an empty string + * @param partmessage The part message, or an empty string (may be modified) * @param silent Change this to true if you want to conceal the PART command from the other users * of the channel (useful for modules such as auditorium) */ - virtual void OnUserPart(User* user, Channel* channel, const std::string &partmessage, bool &silent); + virtual void OnUserPart(User* user, Channel* channel, std::string &partmessage, bool &silent); /** Called on rehash. * This method is called prior to a /REHASH or when a SIGHUP is received from the operating -- cgit v1.2.3