+2003-08-12 Alexey Shchepin <alexey@sevcom.net>
+
+ * src/mod_irc/mod_irc_connection.erl: Added handling for
+ jabber:iq:version and jabber:iq:time requests, participant address
+ now added to presence status
+
2003-08-03 Alexey Shchepin <alexey@sevcom.net>
* src/mod_privacy.erl: Privacy rules support
From,
To,
ID, XMLNS, Type, SubEl);
+ {iq, ID, get, ?NS_VERSION = XMLNS, SubEl} ->
+ Res = io_lib:format("PRIVMSG ~s :\001VERSION\001\r\n",
+ [Resource]),
+ ?SEND(Res),
+ Err = jlib:make_error_reply(
+ El, ?ERR_FEATURE_NOT_IMPLEMENTED),
+ ejabberd_router:route(To, From, Err);
+ {iq, ID, get, ?NS_TIME = XMLNS, SubEl} ->
+ Res = io_lib:format("PRIVMSG ~s :\001TIME\001\r\n",
+ [Resource]),
+ ?SEND(Res),
+ Err = jlib:make_error_reply(
+ El, ?ERR_FEATURE_NOT_IMPLEMENTED),
+ ejabberd_router:route(To, From, Err);
_ ->
Err = jlib:make_error_reply(
El, ?ERR_FEATURE_NOT_IMPLEMENTED),
[{xmlelement, "item",
[{"affiliation", "member"},
{"role", "participant"}],
- []}]}]}),
+ []}]},
+ {xmlelement, "status", [],
+ [{xmlcdata, FromIdent}]}]}),
{ok, Msg, _} = regexp:sub(String, ".*JOIN[^:]*:", ""),
ejabberd_router:route({lists:concat([Chan, "%", StateData#state.server]),
StateData#state.myname, FromUser},