Mercurial > pidgin
diff src/multi.c @ 3517:6b0cb60162f4
[gaim-migrate @ 3590]
Rob McQueen added a mute feature to his nice little docklet. I added a
queuing feature. Configure the docklet in the plugins dialog to queue
unread messages, and when you receive a message the docklet will eat it up
and show a little message pending icon. Click on it, and read your message.
ICQ people will like it.
I also made plugin_event use a va_list.
I bet this breaks perl.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 16 Sep 2002 08:35:24 +0000 |
parents | e23909729192 |
children | cf00549c53d7 |
line wrap: on
line diff
--- a/src/multi.c Mon Sep 16 07:04:55 2002 +0000 +++ b/src/multi.c Mon Sep 16 08:35:24 2002 +0000 @@ -40,6 +40,7 @@ #define LOGIN_STEPS 5 GSList *connections; +int connecting_count = 0; static GtkWidget *acctedit = NULL; static GtkWidget *list = NULL; /* the clist of names in the accteditor */ @@ -1156,7 +1157,9 @@ gaim_setup(gc); gc->user->connecting = FALSE; - plugin_event(event_signon, gc, 0, 0, 0); + connecting_count--; + + plugin_event(event_signon, gc); system_log(log_signon, gc, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); /* away option given? */ @@ -1445,12 +1448,15 @@ /* remove this here so plugins get a sensible count of connections */ connections = g_slist_remove(connections, gc); debug_printf("date: %s\n", full_date()); - plugin_event(event_signoff, gc, 0, 0, 0); + plugin_event(event_signoff, gc); system_log(log_signoff, gc, NULL, OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); /* set this in case the plugin died before really connecting. do it after calling the plugins so they can determine if this user was ever on-line or not */ - gc->user->connecting = FALSE; + if (gc->user->connecting) { + gc->user->connecting = FALSE; + connecting_count--; + } serv_close(gc); /* more UI stuff */