Changeset 8dbe021f
- Timestamp:
- 2008-04-04T23:13:07Z (17 years ago)
- Branches:
- master
- Children:
- f3351f0
- Parents:
- 883a398
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
root_commands.c
r883a398 r8dbe021f 206 206 void cmd_account_del_yes( gpointer w, void *data ) 207 207 { 208 account_t * a= data;209 irc_t *irc = a->irc;210 211 if( a->ic )208 account_t **aptr = data; 209 irc_t *irc = (*aptr)->irc; 210 211 if( (*aptr)->ic ) 212 212 { 213 213 irc_usermsg( irc, "Account is still logged in, can't delete" ); … … 215 215 else 216 216 { 217 account_del( irc, a);217 account_del( irc, (*aptr) ); 218 218 irc_usermsg( irc, "Account deleted" ); 219 219 } 220 g_free( aptr ); 220 221 } 221 222 222 223 void cmd_account_del_no( gpointer w, void *data ) 223 224 { 225 g_free( data ); 224 226 } 225 227 … … 278 280 else 279 281 { 282 account_t **aptr; 280 283 char *msg; 284 285 aptr = g_malloc( sizeof( aptr ) ); 286 *aptr = a; 281 287 282 288 msg = g_strdup_printf( "If you remove this account (%s(%s)), BitlBee will " … … 285 291 "set' command. Are you sure you want to delete this " 286 292 "account?", a->prpl->name, a->user ); 287 query_add( irc, NULL, msg, cmd_account_del_yes, cmd_account_del_no, a );293 query_add( irc, NULL, msg, cmd_account_del_yes, cmd_account_del_no, aptr ); 288 294 g_free( msg ); 289 295 }
Note: See TracChangeset
for help on using the changeset viewer.