]> granicus.if.org Git - ejabberd/commitdiff
Remove unused variables
authorBadlop <badlop@process-one.net>
Mon, 17 Sep 2018 08:42:29 +0000 (10:42 +0200)
committerBadlop <badlop@process-one.net>
Mon, 17 Sep 2018 08:42:29 +0000 (10:42 +0200)
src/mod_admin_extra.erl

index 851941fa856a0701723934ba3e7288fe074c7070..06dc8e5b6d43a210aa70446b166b97da1f02804e 100644 (file)
@@ -1452,8 +1452,7 @@ send_message(Type, From, To, Subject, Body) ->
     ToJID = jid:decode(To),
     Packet = build_packet(Type, Subject, Body, FromJID, ToJID),
     State1 = #{jid => FromJID},
-    {Pkt2, State2} = ejabberd_hooks:run_fold(
-                       user_send_packet, FromJID#jid.lserver, {Packet, State1}, []),
+    ejabberd_hooks:run_fold(user_send_packet, FromJID#jid.lserver, {Packet, State1}, []),
     ejabberd_router:route(xmpp:set_from_to(Packet, FromJID, ToJID)).
 
 build_packet(Type, Subject, Body, FromJID, ToJID) ->