summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-03-02 15:20:21 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-03-02 15:20:21 +0100
commit78044f849b63c71fb9c741c648415a298c0ed617 (patch)
treecea99eb0916f69f94aad904596b6c20eda949f38 /src/users.cpp
parent4f1005acd1e97a6dac8182f80a0ccf453376ba67 (diff)
parent48d19bdd2cdccca18c82d74c0c0cbefc2a87069a (diff)
Merge branch 'master+writeremotenotice'
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 11f103e9d..db5f8a74d 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -830,6 +830,16 @@ void User::WriteFrom(User *user, const char* text, ...)
this->WriteFrom(user, textbuffer);
}
+void User::WriteRemoteNotice(const std::string& text)
+{
+ ServerInstance->PI->SendUserNotice(this, text);
+}
+
+void LocalUser::WriteRemoteNotice(const std::string& text)
+{
+ WriteNotice(text);
+}
+
namespace
{
class WriteCommonRawHandler : public User::ForEachNeighborHandler