From fccaea4f2f9cb29fed49e5c1264b7a55773c6451 Mon Sep 17 00:00:00 2001 From: Leberwurscht Date: Tue, 17 Apr 2012 21:00:03 +0200 Subject: [PATCH] jappixmini: do not annoy user by asking multiple times for authorization --- jappixmini/lib.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jappixmini/lib.js b/jappixmini/lib.js index bbbc7e34..91ba6f6a 100644 --- a/jappixmini/lib.js +++ b/jappixmini/lib.js @@ -120,6 +120,9 @@ function jappixmini_manage_roster(contacts, autoapprove, autosubscribe) { message = "Accept "+xid+" for chat?"; if (pstatus) message += "\n\nStatus:\n"+pstatus; approve = confirm(message); + + // do not ask any more + if (!approve) sendSubscribe(xid, "unsubscribed"); } if (approve) { -- 2.39.5