summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-11-13 17:58:47 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-11-13 17:58:47 (GMT)
commit72bb119c3e18d4881a649c04e7d966676364e1d6 (patch)
treea2061f59561c2dd9958de09ad6d6613f14775139 /Swiften/Queries/Requests
parent759dfaf9283ed07696a060a5ca92bef2699b1b65 (diff)
downloadswift-contrib-72bb119c3e18d4881a649c04e7d966676364e1d6.zip
swift-contrib-72bb119c3e18d4881a649c04e7d966676364e1d6.tar.bz2
Added missing receiver parameter to IBR requests.
Diffstat (limited to 'Swiften/Queries/Requests')
-rw-r--r--Swiften/Queries/Requests/GetInBandRegistrationFormRequest.h6
-rw-r--r--Swiften/Queries/Requests/SubmitInBandRegistrationFormRequest.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/Swiften/Queries/Requests/GetInBandRegistrationFormRequest.h b/Swiften/Queries/Requests/GetInBandRegistrationFormRequest.h
index 33bc156..aa0866a 100644
--- a/Swiften/Queries/Requests/GetInBandRegistrationFormRequest.h
+++ b/Swiften/Queries/Requests/GetInBandRegistrationFormRequest.h
@@ -15,12 +15,12 @@ namespace Swift {
public:
typedef boost::shared_ptr<GetInBandRegistrationFormRequest> ref;
- static ref create(IQRouter* router) {
- return ref(new GetInBandRegistrationFormRequest(router));
+ static ref create(const JID& to, IQRouter* router) {
+ return ref(new GetInBandRegistrationFormRequest(to, router));
}
private:
- GetInBandRegistrationFormRequest(IQRouter* router) : GenericRequest<InBandRegistrationPayload>(IQ::Get, JID(), InBandRegistrationPayload::ref(new InBandRegistrationPayload()), router) {
+ GetInBandRegistrationFormRequest(const JID& to, IQRouter* router) : GenericRequest<InBandRegistrationPayload>(IQ::Get, to, InBandRegistrationPayload::ref(new InBandRegistrationPayload()), router) {
}
};
}
diff --git a/Swiften/Queries/Requests/SubmitInBandRegistrationFormRequest.h b/Swiften/Queries/Requests/SubmitInBandRegistrationFormRequest.h
index 3ed14bb..fb2d344 100644
--- a/Swiften/Queries/Requests/SubmitInBandRegistrationFormRequest.h
+++ b/Swiften/Queries/Requests/SubmitInBandRegistrationFormRequest.h
@@ -18,12 +18,12 @@ namespace Swift {
public:
typedef boost::shared_ptr<SetInBandRegistrationRequest> ref;
- static ref create(InBandRegistrationPayload::ref payload, IQRouter* router) {
- return ref(new SetInBandRegistrationRequest(payload, router));
+ static ref create(const JID& to, InBandRegistrationPayload::ref payload, IQRouter* router) {
+ return ref(new SetInBandRegistrationRequest(to, payload, router));
}
private:
- SetInBandRegistrationRequest(InBandRegistrationPayload::ref payload, IQRouter* router) : Request(IQ::Set, JID(), InBandRegistrationPayload::ref(payload), router) {
+ SetInBandRegistrationRequest(const JID& to, InBandRegistrationPayload::ref payload, IQRouter* router) : Request(IQ::Set, to, InBandRegistrationPayload::ref(payload), router) {
}
virtual void handleResponse(Payload::ref payload, boost::optional<ErrorPayload> error) {