Changeset c2295f7


Ignore:
Timestamp:
2005-12-08T14:51:06Z (19 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
8efa2f4, 9df916f
Parents:
1eddf6b
Message:

Move some crypting-unrelated code

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • crypting.c

    r1eddf6b rc2295f7  
    4646} irc_t;
    4747
    48 #define set_add( a, b, c, d )
    49 #define set_find( a, b ) NULL
    50 
    5148#include "md5.h"
    5249#include "crypting.h"
     
    6966void setpassnc (irc_t *irc, const char *pass)
    7067{
    71         if (!set_find (irc, "password"))
    72                 set_add (irc, "password", NULL, passchange);
    73        
    7468        if (irc->password) g_free (irc->password);
    7569       
     
    8074                irc->password = NULL;
    8175        }
    82 }
    83 
    84 char *passchange (irc_t *irc, void *set, const char *value) {
    85         setpassnc (irc, value);
    86         return (NULL);
    8776}
    8877
  • crypting.h

    r1eddf6b rc2295f7  
    2525
    2626void setpassnc (irc_t *irc, const char *pass); /* USE WITH CAUTION! */
    27 char *passchange (irc_t *irc, void *set, const char *value);
    2827int setpass (irc_t *irc, const char *pass, const char* md5sum);
    2928char *hashpass (irc_t *irc);
  • irc.c

    r1eddf6b rc2295f7  
    3131
    3232GSList *irc_connection_list = NULL;
     33
     34char *passchange (irc_t *irc, void *set, char *value)
     35{
     36        setpassnc (irc, value);
     37        return (NULL);
     38}
    3339
    3440irc_t *irc_new( int fd )
     
    129135        set_add( irc, "to_char", ": ", set_eval_to_char );
    130136        set_add( irc, "typing_notice", "false", set_eval_bool );
     137        set_add( irc, "password", NULL, passchange);
    131138       
    132139        conf_loaddefaults( irc );
Note: See TracChangeset for help on using the changeset viewer.