botnet.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 lower_bot_linked(int idx);
  11. void answer_local_whom(int, int);
  12. char *lastbot(const char *) __attribute__((pure));
  13. int nextbot(const char *) __attribute__((pure));
  14. int in_chain(const char *) __attribute__((pure));
  15. void tell_bots(int, int, const char *);
  16. void tell_bottree(int);
  17. void dump_links(int);
  18. int botlink(char *, int, char *);
  19. int botunlink(int, const char *, const char *);
  20. void addbot(char *, char *, char *, char, int, time_t, char *, char *, int);
  21. void updatebot(int, char *, char, int, time_t, char *, char *, int);
  22. void rembot(const char *);
  23. tand_t *findbot(const char *) __attribute__((pure));
  24. void unvia(int, struct tand_t_struct *);
  25. void check_botnet_pings();
  26. int addparty(char *, char *, int, char, int, char *, int *);
  27. void remparty(char *, int);
  28. void partystat(char *, int, int, int);
  29. int partynick(char *, int, char *);
  30. bool partyidle(char *, char *);
  31. void partysetidle(char *, int, int);
  32. void partyaway(char *, int, char *);
  33. void botnet_send_cmdpass(int, char *, char *);
  34. void zapfbot(int);
  35. void tandem_relay(int, char *, int);
  36. int getparty(const char *, int) __attribute__((pure));
  37. void init_party(void);
  38. #endif /* !_BOTNET_H */