From 9b1e5928bd1c5357e683c144139b259bfee9e3c1 Mon Sep 17 00:00:00 2001 From: Pablo Polvorin Date: Tue, 24 Feb 2009 20:07:32 +0000 Subject: [PATCH] Remove unused var SVN Revision: 1918 --- src/ejabberd_service.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ejabberd_service.erl b/src/ejabberd_service.erl index 72f7a03bb..0f2472467 100644 --- a/src/ejabberd_service.erl +++ b/src/ejabberd_service.erl @@ -147,7 +147,7 @@ init([{SockMod, Socket}, Opts]) -> %% {stop, Reason, NewStateData} %%---------------------------------------------------------------------- -wait_for_stream({xmlstreamstart, El = #xmlel{ns = NS, attrs = Attrs}}, StateData) -> +wait_for_stream({xmlstreamstart, El = #xmlel{ns = _NS, attrs = Attrs}}, StateData) -> case exmpp_xml:is_ns_declared_here(El, ?NS_COMPONENT_ACCEPT) of true -> %% Note: XEP-0114 requires to check that destination is a Jabber @@ -358,6 +358,7 @@ terminate(Reason, StateName, StateData) -> %%%---------------------------------------------------------------------- send_text(StateData, Text) -> + io:format(">>~n ~s ~n", [Text]), (StateData#state.sockmod):send(StateData#state.socket, Text). send_element(StateData, #xmlel{ns = ?NS_XMPP, name = 'stream'} = El) ->