25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-24 17:29:28 +01:00

* src/mod_irc/mod_irc_connection.erl: Fix compilation warnings.

SVN Revision: 2006
This commit is contained in:
Badlop 2009-04-08 18:52:52 +00:00
parent 79247dad41
commit e34d6e3678
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2009-04-08 Badlop <badlop@process-one.net>
* src/mod_irc/mod_irc_connection.erl: Fix compilation warnings.
2009-04-01 Badlop <badlop@process-one.net>
* doc/release_notes_2.0.5.txt: Added file for new release

View File

@ -371,25 +371,25 @@ handle_info({route_chan, Channel, Resource,
From = StateData#state.user,
To = exmpp_jid:make_jid(lists:concat([Channel, "%", StateData#state.server]),
StateData#state.host, StateData#state.nick),
case exmpp_iq:xmlel_to_iq(El) of
_ = case exmpp_iq:xmlel_to_iq(El) of
#iq{kind = request, ns = ?NS_MUC_ADMIN} = IQ_Rec ->
iq_admin(StateData, Channel, From, To, IQ_Rec);
#iq{kind = request, ns = ?NS_SOFT_VERSION} ->
Res = io_lib:format("PRIVMSG ~s :\001VERSION\001\r\n",
[Resource]),
?SEND(Res),
_ = ?SEND(Res),
Err = exmpp_iq:error(El, 'feature-not-implemented'),
ejabberd_router:route(To, From, Err);
#iq{kind = request, ns = ?NS_TIME_OLD} ->
Res = io_lib:format("PRIVMSG ~s :\001TIME\001\r\n",
[Resource]),
?SEND(Res),
_ = ?SEND(Res),
Err = exmpp_iq:error(El, 'feature-not-implemented'),
ejabberd_router:route(To, From, Err);
#iq{kind = request, ns = ?NS_VCARD} ->
Res = io_lib:format("WHOIS ~s \r\n",
[Resource]),
?SEND(Res),
_ = ?SEND(Res),
Err = exmpp_iq:error(El, 'feature-not-implemented'),
ejabberd_router:route(To, From, Err);
#iq{} ->