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 --- src/modules/m_sapart.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_sapart.cpp') diff --git a/src/modules/m_sapart.cpp b/src/modules/m_sapart.cpp index 1baabc463..f01cb1564 100644 --- a/src/modules/m_sapart.cpp +++ b/src/modules/m_sapart.cpp @@ -31,7 +31,7 @@ class CommandSapart : public Command { User* dest = ServerInstance->FindNick(parameters[0]); Channel* channel = ServerInstance->FindChan(parameters[1]); - std::string reason; + std::string reason = ""; if (dest && channel) { @@ -50,7 +50,7 @@ class CommandSapart : public Command */ if (IS_LOCAL(dest)) { - if (!channel->PartUser(dest, reason.empty() ? NULL : reason.c_str())) + if (!channel->PartUser(dest, reason)) delete channel; Channel* n = ServerInstance->FindChan(parameters[1]); -- cgit v1.2.3