botnet.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef _BOTNET_H
  2. #define _BOTNET_H
  3. #ifdef HAVE_CONFIG_H
  4. # include "config.h"
  5. #endif
  6. #include "tandem.h"
  7. extern tand_t *tandbot;
  8. extern party_t *party;
  9. extern int tands;
  10. void restart_chons();
  11. void lower_bot_linked(int idx);
  12. void answer_local_whom(int, int);
  13. char *lastbot(char *);
  14. int nextbot(char *);
  15. int in_chain(char *);
  16. #ifdef HUB
  17. void tell_bots(int);
  18. void tell_bottree(int);
  19. void dump_links(int);
  20. #endif /* HUB */
  21. int botlink(char *, int, char *);
  22. int botunlink(int, char *, char *);
  23. void addbot(char *, char *, char *, char, int, time_t, char *);
  24. void updatebot(int, char *, char, int, time_t, char *);
  25. void rembot(char *);
  26. struct tand_t_struct *findbot(char *);
  27. void unvia(int, struct tand_t_struct *);
  28. void check_botnet_pings();
  29. int partysock(char *, char *);
  30. int addparty(char *, char *, int, char, int, char *, int *);
  31. void remparty(char *, int);
  32. void partystat(char *, int, int, int);
  33. int partynick(char *, int, char *);
  34. int partyidle(char *, char *);
  35. void partysetidle(char *, int, int);
  36. void partyaway(char *, int, char *);
  37. #ifdef S_DCCPASS
  38. void botnet_send_cmdpass(int, char *, char *);
  39. #endif /* S_DCCPASS */
  40. void zapfbot(int);
  41. void tandem_relay(int, char *, int);
  42. int getparty(char *, int);
  43. #endif /* !_BOTNET_H */