Changeset 7989fcf3
- Timestamp:
- 2005-12-08T14:37:39Z (19 years ago)
- Branches:
- master
- Children:
- 8efa2f4
- Parents:
- a1f17d4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
storage.h
ra1f17d4 r7989fcf3 43 43 void (*init) (void); 44 44 45 storage_status_t (*check_pass) (const char *nick, const char *password); 46 45 47 storage_status_t (*load) (const char *nick, const char *password, irc_t * irc); 46 48 storage_status_t (*save) (irc_t *irc, int overwrite); -
storage_text.c
ra1f17d4 r7989fcf3 264 264 } 265 265 266 static storage_status_t text_ remove( const char *nick, const char *password )266 static storage_status_t text_check_pass( const char *nick, const char *password ) 267 267 { 268 268 char s[512]; … … 279 279 /*FIXME Test if password is correct */ 280 280 281 return STORAGE_OK; 282 } 283 284 static storage_status_t text_remove( const char *nick, const char *password ) 285 { 286 char s[512]; 287 storage_status_t status; 288 289 status = text_check_pass( nick, password ); 290 if (status != STORAGE_OK) 291 return status; 292 281 293 g_snprintf( s, 511, "%s%s%s", global.conf->configdir, nick, ".accounts" ); 282 294 if (unlink( s ) == -1) … … 293 305 .name = "text", 294 306 .init = text_init, 307 .check_pass = text_check_pass, 295 308 .remove = text_remove, 296 309 .load = text_load,
Note: See TracChangeset
for help on using the changeset viewer.