Changeset d3307e2 for commands.c


Ignore:
Timestamp:
2005-12-13T23:07:05Z (18 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
6aaa221
Parents:
34759e6 (diff), b73ac9c (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.
Message:

Merge my storage fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r34759e6 rd3307e2  
    8686int cmd_identify( irc_t *irc, char **cmd )
    8787{
    88         storage_status_t status = global.storage->load( irc->nick, cmd[1], irc );
     88        storage_status_t status = storage_load( irc->nick, cmd[1], irc );
    8989       
    9090        switch (status) {
     
    102102                break;
    103103        }
    104        
     104
    105105        return( 0 );
    106106}
     
    115115
    116116        irc_setpass( irc, cmd[1] );
    117         switch( global.storage->save( irc, FALSE )) {
     117        switch( storage_save( irc, FALSE )) {
    118118                case STORAGE_ALREADY_EXISTS:
    119119                        irc_usermsg( irc, "Nick is already registered" );
     
    136136        storage_status_t status;
    137137       
    138         status = global.storage->remove (irc->nick, cmd[1]);
     138        status = storage_remove (irc->nick, cmd[1]);
    139139        switch (status) {
    140140        case STORAGE_NO_SUCH_USER:
     
    616616int cmd_save( irc_t *irc, char **cmd )
    617617{
    618         if( global.storage->save( irc, TRUE ) == STORAGE_OK )
     618        if( storage_save( irc, TRUE ) == STORAGE_OK )
    619619                irc_usermsg( irc, "Configuration saved" );
    620620        else
Note: See TracChangeset for help on using the changeset viewer.