summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Disco/DiscoInfoResponder.cpp')
-rw-r--r--Swiften/Disco/DiscoInfoResponder.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/Disco/DiscoInfoResponder.cpp b/Swiften/Disco/DiscoInfoResponder.cpp
index 154eded..2e686c7 100644
--- a/Swiften/Disco/DiscoInfoResponder.cpp
+++ b/Swiften/Disco/DiscoInfoResponder.cpp
@@ -13,6 +13,11 @@ namespace Swift {
DiscoInfoResponder::DiscoInfoResponder(IQRouter* router) : GetResponder<DiscoInfo>(router) {
}
+void DiscoInfoResponder::clearDiscoInfo() {
+ info_ = DiscoInfo();
+ nodeInfo_.clear();
+}
+
void DiscoInfoResponder::setDiscoInfo(const DiscoInfo& info) {
info_ = info;
}