chanprog.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _CHANPROG_H
  2. #define _CHANPROG_H
  3. #include "src/chan.h"
  4. #define DO_LOCAL 1
  5. #define DO_NET 2
  6. #define CMD 4
  7. int do_chanset(char *, struct chanset_t *, const char *, int);
  8. void checkchans(int);
  9. void tell_verbose_uptime(int);
  10. void tell_verbose_status(int);
  11. void tell_settings(int);
  12. int isowner(char *);
  13. void reaffirm_owners();
  14. void reload();
  15. void chanprog();
  16. void rehash_ip();
  17. void check_timers();
  18. void check_utimers();
  19. void rmspace(char *s);
  20. void set_chanlist(const char *host, struct userrec *rec);
  21. void clear_chanlist(void);
  22. void clear_chanlist_member(const char *nick);
  23. int botshouldjoin(struct userrec *u, struct chanset_t *);
  24. bool bot_shouldjoin(struct userrec* , struct flag_record *, struct chanset_t *, bool = 0);
  25. bool shouldjoin(struct chanset_t *);
  26. char *samechans(const char *, const char *);
  27. void add_myself_to_userlist();
  28. bool is_hub(const char*);
  29. void load_internal_users();
  30. void setup_HQ(int);
  31. extern struct chanset_t *chanset, *chanset_default;
  32. extern char admin[], origbotnick[NICKLEN + 1], origbotname[NICKLEN + 1], jupenick[NICKLEN], botname[NICKLEN + 1], *def_chanset;
  33. extern port_t my_port;
  34. extern bool reset_chans, cookies_disabled;
  35. #endif /* !_CHANPROG_H */