25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

* src/mod_caps.erl: Fix unbound variable

SVN Revision: 2022
This commit is contained in:
Badlop 2009-04-17 13:40:57 +00:00
parent 13fcbd6413
commit 5ca560d0bd
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-04-17 Badlop <badlop@process-one.net>
* src/mod_caps.erl: Fix unbound variable
2009-04-14 Badlop <badlop@process-one.net> 2009-04-14 Badlop <badlop@process-one.net>
* doc/guide.tex: Explain that the recommended Erlang/OTP version * doc/guide.tex: Explain that the recommended Erlang/OTP version

View File

@ -180,7 +180,7 @@ receive_packet(From, To, Packet) when ?IS_PRESENCE(Packet) ->
'unavailable' -> 'unavailable' ->
clear_caps(From); clear_caps(From);
_ -> _ ->
ServerString = binary_to_list(StateData#state.server), ServerString = exmpp_jid:ldomain_as_list(To),
Els = Packet#xmlel.children, Els = Packet#xmlel.children,
note_caps(ServerString, From, read_caps(Els)) note_caps(ServerString, From, read_caps(Els))
end; end;