summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-01-22 11:59:44 +0000
committerPeter Powell <petpow@saberuk.com>2019-01-22 12:09:28 +0000
commit965c81baee0fb6f46aa788f45742d558f50c8b15 (patch)
treec618ac452708a1ae88f6a6b552ddcde843517ecd
parent0a1f9bc59494a532a91bc9c8afcecb31ece656ee (diff)
Rename OnClientProtocolProcessTag to OnProcessTag.
-rw-r--r--include/clientprotocol.h2
-rw-r--r--src/clientprotocol.cpp2
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/clientprotocol.h b/include/clientprotocol.h
index 10b70e80b..ec033e166 100644
--- a/include/clientprotocol.h
+++ b/include/clientprotocol.h
@@ -549,7 +549,7 @@ class ClientProtocol::MessageTagProvider : public Events::ModuleEventListener
* MOD_RES_PASSTHRU to make no decision. If no hooks accept a tag, the tag is rejected.
* The default implementation returns MOD_RES_PASSTHRU.
*/
- virtual ModResult OnClientProtocolProcessTag(User* user, const std::string& tagname, std::string& tagvalue)
+ virtual ModResult OnProcessTag(User* user, const std::string& tagname, std::string& tagvalue)
{
return MOD_RES_PASSTHRU;
}
diff --git a/src/clientprotocol.cpp b/src/clientprotocol.cpp
index a732855a5..212d65d6b 100644
--- a/src/clientprotocol.cpp
+++ b/src/clientprotocol.cpp
@@ -35,7 +35,7 @@ bool ClientProtocol::Serializer::HandleTag(LocalUser* user, const std::string& t
for (::Events::ModuleEventProvider::SubscriberList::const_iterator i = list.begin(); i != list.end(); ++i)
{
MessageTagProvider* const tagprov = static_cast<MessageTagProvider*>(*i);
- const ModResult res = tagprov->OnClientProtocolProcessTag(user, tagname, tagvalue);
+ const ModResult res = tagprov->OnProcessTag(user, tagname, tagvalue);
if (res == MOD_RES_ALLOW)
return tags.insert(std::make_pair(tagname, MessageTagData(tagprov, tagvalue))).second;
else if (res == MOD_RES_DENY)
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp
index dc24802fb..45f8a380f 100644
--- a/src/modules/m_spanningtree/treesocket2.cpp
+++ b/src/modules/m_spanningtree/treesocket2.cpp
@@ -292,7 +292,7 @@ void TreeSocket::ProcessTag(User* source, const std::string& tag, ClientProtocol
for (Events::ModuleEventProvider::SubscriberList::const_iterator i = list.begin(); i != list.end(); ++i)
{
ClientProtocol::MessageTagProvider* const tagprov = static_cast<ClientProtocol::MessageTagProvider*>(*i);
- const ModResult res = tagprov->OnClientProtocolProcessTag(source, tagkey, tagval);
+ const ModResult res = tagprov->OnProcessTag(source, tagkey, tagval);
if (res == MOD_RES_ALLOW)
tags.insert(std::make_pair(tagkey, ClientProtocol::MessageTagData(tagprov, tagval)));
else if (res == MOD_RES_DENY)