botnet.h 1.2 KB

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