diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-11-18 23:53:50 +0100 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-11-19 18:32:42 +0100 |
commit | 6c67546af64cec887bb716f666016eb93fde5d2b (patch) | |
tree | f5fd16a2d04a0450769c489fb7ccbf91cb7db803 /src/modules/m_remove.cpp | |
parent | 7eab4fd473143be2516037b114d48b89cc481fc4 (diff) |
ServerConfig::ServerName is a std::string, don't call .c_str() on it when passing it to Channel::WriteChannelWithServ, etc.
Diffstat (limited to 'src/modules/m_remove.cpp')
-rw-r--r-- | src/modules/m_remove.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp index ae583315a..4d8b90875 100644 --- a/src/modules/m_remove.cpp +++ b/src/modules/m_remove.cpp @@ -120,7 +120,7 @@ class RemoveBase : public Command /* Build up the part reason string. */ reason = "Removed by " + user->nick + ": " + reasonparam; - channel->WriteChannelWithServ(ServerInstance->Config->ServerName.c_str(), "NOTICE %s :%s removed %s from the channel", channel->name.c_str(), user->nick.c_str(), target->nick.c_str()); + channel->WriteChannelWithServ(ServerInstance->Config->ServerName, "NOTICE %s :%s removed %s from the channel", channel->name.c_str(), user->nick.c_str(), target->nick.c_str()); target->WriteServ("NOTICE %s :*** %s removed you from %s with the message: %s", target->nick.c_str(), user->nick.c_str(), channel->name.c_str(), reasonparam.c_str()); channel->PartUser(target, reason); |