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