diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-03-02 15:20:21 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-03-02 15:20:21 +0100 |
commit | 78044f849b63c71fb9c741c648415a298c0ed617 (patch) | |
tree | cea99eb0916f69f94aad904596b6c20eda949f38 /src/configreader.cpp | |
parent | 4f1005acd1e97a6dac8182f80a0ccf453376ba67 (diff) | |
parent | 48d19bdd2cdccca18c82d74c0c0cbefc2a87069a (diff) |
Merge branch 'master+writeremotenotice'
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 1ac6b445a..e607c6e7d 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -612,7 +612,7 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid) std::cout << line << std::endl; // If a user is rehashing, tell them directly if (user) - user->SendText(":%s NOTICE %s :*** %s", ServerInstance->Config->ServerName.c_str(), user->nick.c_str(), line.c_str()); + user->WriteRemoteNotice(InspIRCd::Format("*** %s", line.c_str())); // Also tell opers ServerInstance->SNO->WriteGlobalSno('a', line); } @@ -652,8 +652,7 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid) ApplyModules(user); if (user) - user->SendText(":%s NOTICE %s :*** Successfully rehashed server.", - ServerInstance->Config->ServerName.c_str(), user->nick.c_str()); + user->WriteRemoteNotice("*** Successfully rehashed server."); ServerInstance->SNO->WriteGlobalSno('a', "*** Successfully rehashed server."); } |