1
0

0010-ngircd-Add-ProtongIRCd.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. From d2c45d7c578ec684d3b471020f631847316de196 Mon Sep 17 00:00:00 2001
  2. From: Alexander Barton <alex@barton.de>
  3. Date: Fri, 25 Nov 2011 19:17:19 +0100
  4. Subject: [PATCH 10/16] ngircd: Add ~ProtongIRCd()
  5. ---
  6. modules/protocol/ngircd.cpp | 13 ++++++++-----
  7. 1 files changed, 8 insertions(+), 5 deletions(-)
  8. diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp
  9. index 55cb8d7..5fd62db 100644
  10. --- a/modules/protocol/ngircd.cpp
  11. +++ b/modules/protocol/ngircd.cpp
  12. @@ -302,8 +302,7 @@ class ngIRCdIRCdMessage : public IRCdMessage
  13. }
  14. };
  15. -/** This is here because:
  16. - *
  17. +/*
  18. * If we had three servers, A, B & C linked like so: A<->B<->C
  19. * If Anope is linked to A and B splits from A and then reconnects
  20. * B introduces itself, introduces C, sends EOS for C, introduces Bs clients
  21. @@ -319,8 +318,6 @@ bool event_pong(const Anope::string &source, const std::vector<Anope::string> &p
  22. return true;
  23. }
  24. -
  25. -
  26. /*
  27. * CHANINFO <chan> +<modes>
  28. * CHANINFO <chan> +<modes> :<topic>
  29. @@ -480,7 +477,6 @@ bool event_376(const Anope::string &source, const std::vector<Anope::string> &pa
  30. return true;
  31. }
  32. -
  33. class ProtongIRCd : public Module
  34. {
  35. Message message_kick, message_pass, message_njoin, message_chaninfo, message_005,
  36. @@ -542,6 +538,13 @@ class ProtongIRCd : public Module
  37. ModuleManager::Attach(I_OnUserNickChange, this);
  38. }
  39. + ~ProtongIRCd()
  40. + {
  41. + pmodule_ircd_var(NULL);
  42. + pmodule_ircd_proto(NULL);
  43. + pmodule_ircd_message(NULL);
  44. + }
  45. +
  46. void OnUserNickChange(User *u, const Anope::string &)
  47. {
  48. u->RemoveModeInternal(ModeManager::FindUserModeByName(UMODE_REGISTERED));
  49. --
  50. 1.7.8.3