- Timestamp:
- 2010-10-09T18:41:19Z (13 years ago)
- Branches:
- master
- Children:
- d150a9d
- Parents:
- 23b29c6 (diff), 27b407f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
r23b29c6 r6197702 29 29 30 30 GSList *irc_connection_list; 31 GSList *irc_plugins; 31 32 32 33 static gboolean irc_userping( gpointer _irc, gint fd, b_input_condition cond ); … … 42 43 char *host = NULL, *myhost = NULL; 43 44 irc_user_t *iu; 45 GSList *l; 44 46 set_t *s; 45 47 bee_t *b; … … 165 167 nogaim_init(); 166 168 169 for( l = irc_plugins; l; l = l->next ) 170 { 171 irc_plugin_t *p = l->data; 172 if( p->irc_new ) 173 p->irc_new( irc ); 174 } 175 167 176 return irc; 168 177 } … … 208 217 void irc_free( irc_t * irc ) 209 218 { 219 GSList *l; 220 210 221 irc->status |= USTATUS_SHUTDOWN; 211 222 … … 215 226 if( storage_save( irc, NULL, TRUE ) != STORAGE_OK ) 216 227 log_message( LOGLVL_WARNING, "Error while saving settings for user %s", irc->user->nick ); 228 229 for( l = irc_plugins; l; l = l->next ) 230 { 231 irc_plugin_t *p = l->data; 232 if( p->irc_free ) 233 p->irc_free( irc ); 234 } 217 235 218 236 irc_connection_list = g_slist_remove( irc_connection_list, irc ); … … 933 951 return SET_INVALID; 934 952 } 953 954 void register_irc_plugin( const struct irc_plugin *p ) 955 { 956 irc_plugins = g_slist_prepend( irc_plugins, (gpointer) p ); 957 }
Note: See TracChangeset
for help on using the changeset viewer.