1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 09:06:38 +02:00

Remove send_cmd and replace it with a stringstream

This commit is contained in:
Adam
2011-11-25 00:44:31 -05:00
parent 12d0a7302f
commit cef3eb78df
17 changed files with 417 additions and 581 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ class MyGlobalService : public GlobalService
void ServerGlobal(Server *s, const Anope::string &message)
{
if (s != Me && !s->HasFlag(SERVER_JUPED))
notice_server(Config->Global, s, "%s", message.c_str());
s->Notice(findbot(Config->Global), message);
for (unsigned i = 0, j = s->GetLinks().size(); i < j; ++i)
this->ServerGlobal(s->GetLinks()[i], message);
}
@@ -76,7 +76,7 @@ class GlobalCore : public Module
void OnNewServer(Server *s)
{
if (Config->GlobalOnCycle && !Config->GlobalOnCycleUP.empty())
notice_server(Config->Global, s, "%s", Config->GlobalOnCycleUP.c_str());
s->Notice(findbot(Config->Global), Config->GlobalOnCycleUP);
}
EventReturn OnPreHelp(CommandSource &source, const std::vector<Anope::string> &params)