From cef3eb78dfd2ea20e0a482d040cc99902fdb4b2a Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 25 Nov 2011 00:44:31 -0500 Subject: Remove send_cmd and replace it with a stringstream --- modules/pseudoclients/global.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/pseudoclients') diff --git a/modules/pseudoclients/global.cpp b/modules/pseudoclients/global.cpp index b43851735..ab407b0fc 100644 --- a/modules/pseudoclients/global.cpp +++ b/modules/pseudoclients/global.cpp @@ -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 ¶ms) -- cgit