diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-09-02 13:17:24 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-09-13 12:15:44 +0200 |
commit | 02220d48eec4dd3507b582031de639c9d7835ec8 (patch) | |
tree | f74a09b5096b754b3484c3a03ee4d0fa91270c09 /include | |
parent | 58d7827bb1bd3d90f38a1c199f6f41ae9f24885c (diff) |
Split ProtocolInterface::SendMetaData() into multiple functions
Diffstat (limited to 'include')
-rw-r--r-- | include/protocol.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/include/protocol.h b/include/protocol.h index e474dd095..bffc4a5e9 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -53,12 +53,25 @@ class CoreExport ProtocolInterface */ virtual bool SendEncapsulatedData(const parameterlist &encap) { return false; } - /** Send metadata for an object to other linked servers. - * @param target The object to send metadata for. + /** Send metadata for a channel to other linked servers. + * @param chan The channel to send metadata for * @param key The 'key' of the data, e.g. "swhois" for swhois desc on a user * @param data The string representation of the data */ - virtual void SendMetaData(Extensible* target, const std::string &key, const std::string &data) { } + virtual void SendMetaData(Channel* chan, const std::string& key, const std::string& data) { } + + /** Send metadata for a user to other linked servers. + * @param user The user to send metadata for + * @param key The 'key' of the data, e.g. "swhois" for swhois desc on a user + * @param data The string representation of the data + */ + virtual void SendMetaData(User* user, const std::string& key, const std::string& data) { } + + /** Send metadata related to the server to other linked servers. + * @param key The 'key' of the data + * @param data The string representation of the data + */ + virtual void SendMetaData(const std::string& key, const std::string& data) { } /** Send a topic change for a channel * @param channel The channel to change the topic for. |