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 --- src/modules/m_nopartmsg.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/modules/m_nopartmsg.cpp') diff --git a/src/modules/m_nopartmsg.cpp b/src/modules/m_nopartmsg.cpp index 648626a23..46b79b51f 100644 --- a/src/modules/m_nopartmsg.cpp +++ b/src/modules/m_nopartmsg.cpp @@ -35,15 +35,13 @@ class ModulePartMsgBan : public Module } - 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) { if (!IS_LOCAL(user)) return; -#if 0 if (channel->IsExtBanned(user, 'p')) partmessage = ""; -#endif return; } -- cgit v1.3.1-10-gc9f91