diff options
author | Adam <Adam@anope.org> | 2011-11-25 00:44:31 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-11-25 00:44:31 -0500 |
commit | cef3eb78dfd2ea20e0a482d040cc99902fdb4b2a (patch) | |
tree | d9e964ac19137e87a6fb97d25dda9be6487c2aa9 /modules/pseudoclients/global.cpp | |
parent | 12d0a7302f76fe21c54ffcead286fc31e870b817 (diff) |
Remove send_cmd and replace it with a stringstream
Diffstat (limited to 'modules/pseudoclients/global.cpp')
-rw-r--r-- | modules/pseudoclients/global.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<Anope::string> ¶ms) |