Changeset 0383943


Ignore:
Timestamp:
2006-08-24T22:06:52Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
8320a7a
Parents:
9829ae0
Message:

Added message on successful creation of accounts and fixed "set password"
command.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r9829ae0 r0383943  
    3333GSList *irc_connection_list = NULL;
    3434
    35 static char *passchange( irc_t *irc, void *set, char *value )
    36 {
     35static char *passchange( set_t *set, char *value )
     36{
     37        irc_t *irc = set->data;
     38       
    3739        irc_setpass( irc, value );
    3840        irc_usermsg( irc, "Password successfully changed" );
  • root_commands.c

    r9829ae0 r0383943  
    169169                       
    170170                case STORAGE_OK:
     171                        irc_usermsg( irc, "Account successfully created" );
    171172                        irc->status |= USTATUS_IDENTIFIED;
    172173                        irc_umode_set( irc, "+R", 1 );
  • set.c

    r9829ae0 r0383943  
    2626#include "bitlbee.h"
    2727
    28 set_t *set_add( set_t **head, char *key, char *def, void *eval, void *data )
     28set_t *set_add( set_t **head, char *key, char *def, set_eval eval, void *data )
    2929{
    3030        set_t *s = set_find( head, key );
  • set.h

    r9829ae0 r0383943  
    3434   NULL, or replace it by returning a new value. See struct set.eval. */
    3535
     36typedef char *(*set_eval) ( struct set *set, char *value );
     37
    3638typedef struct set
    3739{
     
    5254           passed value variable. When returning a corrected value,
    5355           set_setstr() should be able to free() the returned string! */
    54         char *(*eval) ( struct set *set, char *value );
     56        set_eval eval;
    5557        struct set *next;
    5658} set_t;
    5759
    5860/* Should be pretty clear. */
    59 set_t *set_add( set_t **head, char *key, char *def, void *eval, void *data );
     61set_t *set_add( set_t **head, char *key, char *def, set_eval eval, void *data );
    6062
    6163/* Returns the raw set_t. Might be useful sometimes. */
Note: See TracChangeset for help on using the changeset viewer.