]> granicus.if.org Git - ejabberd/commitdiff
IQ sent to resource not connected, return service-unavailable instead of recipient...
authorBadlop <badlop@process-one.net>
Tue, 1 Dec 2009 20:00:33 +0000 (20:00 +0000)
committerBadlop <badlop@process-one.net>
Tue, 1 Dec 2009 20:00:33 +0000 (20:00 +0000)
SVN Revision: 2768

src/ejabberd_sm.erl

index b42746ea80d0ef4fc508fccd660dfaa1e7aa642f..5c1323ef8f0e3de059dd45b64fdb3379dd318705 100644 (file)
@@ -481,7 +481,7 @@ do_route(From, To, Packet) ->
                                _ ->
                                    Err =
                                        jlib:make_error_reply(
-                                         Packet, ?ERR_RECIPIENT_UNAVAILABLE),
+                                         Packet, ?ERR_SERVICE_UNAVAILABLE),
                                    ejabberd_router:route(To, From, Err)
                            end;
                        _ ->