Permalink
Browse files

handle jabber 'resource' in substitutions (TSUN-174)

  • Loading branch information...
1 parent 64c85dd commit cf93270336d069a5a694463600f97c66c210df69 @nniclausse nniclausse committed Aug 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/tsung/ts_jabber.erl
View
@@ -280,8 +280,8 @@ subst(Req=#jabber{id=user_defined, username=Name,passwd=Pwd, data=Data}, DynData
put(xmpp_user_id,{NewUser,NewPwd}),% we need to keep the substitution for futures requests
Req#jabber{username=NewUser,passwd=NewPwd,data=NewData};
-subst(Req=#jabber{data=Data}, DynData) ->
- Req#jabber{data=ts_search:subst(Data,DynData)}.
+subst(Req=#jabber{data=Data,resource=Resource}, DynData) ->
+ Req#jabber{data=ts_search:subst(Data,DynData),resource=ts_search:subst(Resource,DynData)}.
%%----------------------------------------------------------------------

0 comments on commit cf93270

Please sign in to comment.