aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--avandu.el6
1 files changed, 6 insertions, 0 deletions
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."