Mercurial > pidgin
view libfaim/aim_global.c @ 142:fbabd28795d2
[gaim-migrate @ 152]
Added auto-load for plugins. Rob pointed out this might be a bad idea: what
if plugins modify the buddy list; the plugins are loaded before signon, thus
before the buddy list appears. That would cause errors; then when the list
does appear, the plugin doesn't work right because it didn't start off well.
My response:
EWarmenhoven: there are ways around that
EWarmenhoven: in gaim_plugin_init you could have:
EWarmenhoven:
if (blist) {
do_the_normal_thing();
} else {
gaim_signal_connect(handle, event_signon, now_the_buddy_list_is_here, NULL);
}
EWarmenhoven: and actually, that's the way it should be for all plugins that
modify the buddy list, because there will be at least one point during
execution that it could be loaded when the person is signed off (and i'm not
talking about when they first start it up, i'm talking about when they choose
'sign off' instead of 'close' in the buddy list menu)
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 20 Apr 2000 00:12:58 +0000 |
parents | 68b230f8da5f |
children |
line wrap: on
line source
/* aim_global.c These are things that are globally required, but don't fit the naming of the rest of the functions. Namely, the queue ptrs and fds. */ #include "aim.h" /* the dreaded global variables... */ struct login_phase1_struct aim_logininfo; /* queue (linked list) pointers */ struct command_tx_struct *aim_queue_outgoing = NULL; /* incoming commands */ struct command_rx_struct *aim_queue_incoming = NULL; /* outgoing commands */