about summary refs log tree commit diff
path: root/contrib/Anope/0008-ngircd-Allow-setting-modes-by-clients-on-burst.patch
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2012-11-04 13:58:25 +0100
committerAlexander Barton <alex@barton.de>2012-11-10 21:26:25 +0100
commit45b0bb5aff6157409ea88b344c34b7bf84dc8886 (patch)
tree8a07254443c887b6dbdd648d8866702cb8e43e71 /contrib/Anope/0008-ngircd-Allow-setting-modes-by-clients-on-burst.patch
parentc7db2f8429c161835f6a9ed4523f45c23918892b (diff)
downloadngircd-45b0bb5aff6157409ea88b344c34b7bf84dc8886.tar.gz
ngircd-45b0bb5aff6157409ea88b344c34b7bf84dc8886.zip
Remove Anope "ngircd" protocol module patches
Starting with Anope 1.9.8, the ngIRCd protocol module is included in the
Anope distribution, so there's no longer any need to support our own (but
now heavily outdated!) patches. Therefore remove them.
Diffstat (limited to 'contrib/Anope/0008-ngircd-Allow-setting-modes-by-clients-on-burst.patch')
-rw-r--r--contrib/Anope/0008-ngircd-Allow-setting-modes-by-clients-on-burst.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/contrib/Anope/0008-ngircd-Allow-setting-modes-by-clients-on-burst.patch b/contrib/Anope/0008-ngircd-Allow-setting-modes-by-clients-on-burst.patch
deleted file mode 100644
index eb2c214d..00000000
--- a/contrib/Anope/0008-ngircd-Allow-setting-modes-by-clients-on-burst.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From d363ebd841ea7e1db3c62730023759d69520e0d8 Mon Sep 17 00:00:00 2001
-From: Alexander Barton <alex@barton.de>
-Date: Tue, 27 Sep 2011 15:08:09 +0200
-Subject: [PATCH 08/16] ngircd: Allow setting modes by clients on burst
-
-This change is required by commit 43201ead9575a for the ngIRCd protocol
-module as well.
----
- modules/protocol/ngircd.cpp |    7 +++++--
- 1 files changed, 5 insertions(+), 2 deletions(-)
-
-diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp
-index 3024fdd..2774168 100644
---- a/modules/protocol/ngircd.cpp
-+++ b/modules/protocol/ngircd.cpp
-@@ -57,14 +57,17 @@ class ngIRCdProto : public IRCDProto
- 		send_cmd(source ? source->nick : Config->ServerName, "WALLOPS :%s", buf.c_str());
- 	}
- 
--	void SendJoin(User *user, Channel *c, const ChannelStatus *status)
-+	void SendJoin(User *user, Channel *c, ChannelStatus *status)
- 	{
- 		send_cmd(user->nick, "JOIN %s", c->name.c_str());
- 		if (status)
- 		{
-+			ChannelStatus cs = *status;
-+			status->ClearFlags();
-+
- 			BotInfo *setter = findbot(user->nick);
- 			for (unsigned i = 0; i < ModeManager::ChannelModes.size(); ++i)
--				if (status->HasFlag(ModeManager::ChannelModes[i]->Name))
-+				if (cs.HasFlag(ModeManager::ChannelModes[i]->Name))
- 					c->SetMode(setter, ModeManager::ChannelModes[i], user->nick, false);
- 		}
- 	}
--- 
-1.7.8.3
-