Changeset devel,71
- Timestamp:
- 2005-12-08T14:51:06Z (4 years ago)
- branch-nick:
- integration
- Location:
- devel
- Files:
-
- 3 modified
-
crypting.c (modified) (3 diffs)
-
crypting.h (modified) (1 diff)
-
irc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
devel/crypting.c
r70 r71 46 46 } irc_t; 47 47 48 #define set_add( a, b, c, d )49 #define set_find( a, b ) NULL50 51 48 #include "md5.h" 52 49 #include "crypting.h" … … 69 66 void setpassnc (irc_t *irc, const char *pass) 70 67 { 71 if (!set_find (irc, "password"))72 set_add (irc, "password", NULL, passchange);73 74 68 if (irc->password) g_free (irc->password); 75 69 … … 80 74 irc->password = NULL; 81 75 } 82 }83 84 char *passchange (irc_t *irc, void *set, const char *value) {85 setpassnc (irc, value);86 return (NULL);87 76 } 88 77 -
devel/crypting.h
r70 r71 25 25 26 26 void setpassnc (irc_t *irc, const char *pass); /* USE WITH CAUTION! */ 27 char *passchange (irc_t *irc, void *set, const char *value);28 27 int setpass (irc_t *irc, const char *pass, const char* md5sum); 29 28 char *hashpass (irc_t *irc); -
devel/irc.c
r60 r71 31 31 32 32 GSList *irc_connection_list = NULL; 33 34 char *passchange (irc_t *irc, void *set, char *value) 35 { 36 setpassnc (irc, value); 37 return (NULL); 38 } 33 39 34 40 irc_t *irc_new( int fd ) … … 129 135 set_add( irc, "to_char", ": ", set_eval_to_char ); 130 136 set_add( irc, "typing_notice", "false", set_eval_bool ); 137 set_add( irc, "password", NULL, passchange); 131 138 132 139 conf_loaddefaults( irc );
