From: brain Date: Fri, 4 Apr 2008 13:29:15 +0000 (+0000) Subject: Change the function name because gcc is dumb :/ X-Git-Tag: v2.0.23~3534 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=3f971b447fae258a92f2cc6645497cce93f1c04e;p=user%2Fhenk%2Fcode%2Finspircd.git Change the function name because gcc is dumb :/ git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9305 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/include/protocol.h b/include/protocol.h index 85490c1d0..44964e1e8 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -36,7 +36,7 @@ class ProtocolInterface : public Extensible virtual void SendMode(const std::string &target, parameterlist &modedata) { } - virtual void SendMode(const std::string &target, const std::string &modeline) + virtual void SendModeStr(const std::string &target, const std::string &modeline) { /* Convenience function */ irc::spacesepstream x(modeline); diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp index 5c7c0a977..c506a2fb7 100644 --- a/src/modules/m_messageflood.cpp +++ b/src/modules/m_messageflood.cpp @@ -238,7 +238,7 @@ class ModuleMsgFlood : public Module parameters[2] = user->MakeWildHost(); ServerInstance->SendMode(parameters,3,user); - ServerInstance->PI->SendMode(dest->name, std::string("+b ") + user->MakeWildHost()); + ServerInstance->PI->SendModeStr(dest->name, std::string("+b ") + user->MakeWildHost()); } char kickmessage[MAXBUF]; snprintf(kickmessage, MAXBUF, "Channel flood triggered (limit is %d lines in %d secs)", f->lines, f->secs); diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index 6c91d1156..4be32ffc2 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -162,7 +162,7 @@ class ModuleTimedBans : public Module setban[1] = "-b"; setban[2] = i->mask.c_str(); - ServerInstance->PI->SendMode(i->channel, std::string("-b ") + setban[2]); + ServerInstance->PI->SendModeStr(i->channel, std::string("-b ") + setban[2]); ServerInstance->SendMode(setban,3, ServerInstance->FakeClient); CUList empty;