25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Fix function specification

This commit is contained in:
Holger Weiss 2015-05-20 12:13:15 +02:00
parent 1854b5e411
commit 889459b45c

View File

@ -637,8 +637,8 @@ add_delay_info(El, From, Time, Desc) ->
xml:append_subtags(NewEl, [NewDelayTag]) xml:append_subtags(NewEl, [NewDelayTag])
end. end.
-spec create_delay_tag(erlang:timestamp(), jid() | ljid() | binary(), binary(), -spec create_delay_tag(erlang:timestamp(), jid() | ljid() | binary(), binary())
binary()) -> xmlel() | error. -> xmlel() | error.
create_delay_tag(TimeStamp, FromJID, Desc) when is_tuple(FromJID) -> create_delay_tag(TimeStamp, FromJID, Desc) when is_tuple(FromJID) ->
From = jlib:jid_to_string(FromJID), From = jlib:jid_to_string(FromJID),