userrec.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _USERREC_H
  2. #define _USERREC_H
  3. namespace bd {
  4. class Stream;
  5. }
  6. struct userrec *adduser(struct userrec *, const char *, char *, char *, flag_t, int);
  7. void addhost_by_handle(char *, char *);
  8. void clear_masks(struct maskrec *);
  9. void clear_cached_users();
  10. void cache_users();
  11. void clear_userlist(struct userrec *);
  12. int u_pass_match(struct userrec *, const char *);
  13. int delhost_by_handle(char *, char *);
  14. int count_users(struct userrec *);
  15. int deluser(char *);
  16. int change_handle(struct userrec *, char *);
  17. void correct_handle(char *);
  18. void stream_writeuserfile(bd::Stream&, const struct userrec *, int idx, bool = 0);
  19. int real_write_userfile(int);
  20. int write_userfile(int);
  21. void touch_laston(struct userrec *, char *, time_t);
  22. void user_del_chan(char *);
  23. struct userrec *host_conflicts(char *);
  24. struct userrec *get_user_by_handle(struct userrec *, const char *);
  25. struct userrec *get_user_by_host(char *);
  26. extern struct userrec *userlist, *lastuser;
  27. extern int cache_hit, cache_miss, userfile_perm;
  28. extern bool noshare;
  29. #endif /* !_USERREC_H */