aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_nopartmsg.cpp
diff options
context:
space:
mode:
authorGravatar w00t2008-07-11 14:44:17 +0000
committerGravatar w00t2008-07-11 14:44:17 +0000
commit4e599dd4fbfe5abc0d60a05008344e35e6bc870d (patch)
tree1e9dd14e5ba82788428a43b5e0d8ab6c7725de7b /src/modules/m_nopartmsg.cpp
parent- xml has no html entities :( (diff)
downloadinspircd++-4e599dd4fbfe5abc0d60a05008344e35e6bc870d.tar.gz
inspircd++-4e599dd4fbfe5abc0d60a05008344e35e6bc870d.tar.bz2
inspircd++-4e599dd4fbfe5abc0d60a05008344e35e6bc870d.zip
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
Diffstat (limited to 'src/modules/m_nopartmsg.cpp')
-rw-r--r--src/modules/m_nopartmsg.cpp4
1 files changed, 1 insertions, 3 deletions
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;
}