changeset 148:c09b48f8f7f4

[gaim-migrate @ 158] Added notes for how to do save-state in the autoreconnect plugin. If no one implements it before I get back home, I'll do it myself; feel free to try it on your own though. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 23 Apr 2000 00:11:04 +0000
parents ec301cfcaebf
children 9d684979f507
files plugins/autorecon.c
diffstat 1 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/autorecon.c	Fri Apr 21 19:09:01 2000 +0000
+++ b/plugins/autorecon.c	Sun Apr 23 00:11:04 2000 +0000
@@ -1,3 +1,23 @@
+/* TODO: save state
+ * I'm not at my computer right now, so I'm not going to bother
+ * writing it, but if someone wants to before I get back (hint,
+ * hint), go for it. Here's how to do it.
+ *
+ * First, add a global "state", which is either 'away' or not.
+ *
+ * In gaim_plugin_init, set state, and add two more signal
+ * handlers: event_away and event_back, and if you can't figure
+ * out what you're supposed to do for them, you shouldn't be
+ * editing this plugin.
+ *
+ * In the reconnect function, if "state" was away, then reset
+ * the away message. You may have to remember the away message
+ * on your own; I haven't checked yet to see if there's a global
+ * that remembers it that isn't erased on signoff/signon.
+ *
+ * Anyway, that should be it.
+ */
+
 #define GAIM_PLUGINS
 #include "gaim.h"
 #include <gtk/gtk.h>