From b138eea72387b0d9d87d5089603152780ba78bd1 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sat, 28 Jul 2012 22:52:57 +0200 Subject: [PATCH] Add logout command If you ever want to manually reset your session. --- avandu.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/avandu.el b/avandu.el index 1e09e7f..5b36451 100644 --- a/avandu.el +++ b/avandu.el @@ -211,6 +211,12 @@ bounds of a button." (button-put button 'face 'avandu-overview-read-article)) (avandu-next-article)) +(defun avandu-logout () + "Logout from Tiny Tiny RSS." + (interactive) + (avandu-send-command '((op . "logout"))) + (avandu--clear-data)) + (defun avandu-logged-in-p () "Send a request to tt-rss to see if we're (still) logged in. This function returns t if we are, or nil if we're not."