botnet.h 1.5 KB

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