diff options
| author | Alexander Barton <alex@barton.de> | 2012-11-04 13:58:25 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2012-11-10 21:26:25 +0100 |
| commit | 45b0bb5aff6157409ea88b344c34b7bf84dc8886 (patch) | |
| tree | 8a07254443c887b6dbdd648d8866702cb8e43e71 /contrib/Anope/0014-ngircd-set-unset-GLINE-s-on-AKILL-commands.patch | |
| parent | c7db2f8429c161835f6a9ed4523f45c23918892b (diff) | |
| download | ngircd-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/0014-ngircd-set-unset-GLINE-s-on-AKILL-commands.patch')
| -rw-r--r-- | contrib/Anope/0014-ngircd-set-unset-GLINE-s-on-AKILL-commands.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/contrib/Anope/0014-ngircd-set-unset-GLINE-s-on-AKILL-commands.patch b/contrib/Anope/0014-ngircd-set-unset-GLINE-s-on-AKILL-commands.patch deleted file mode 100644 index c02ac6e8..00000000 --- a/contrib/Anope/0014-ngircd-set-unset-GLINE-s-on-AKILL-commands.patch +++ /dev/null @@ -1,35 +0,0 @@ -From acc24a7f4488f6ef0fb240a76766db4220b62d53 Mon Sep 17 00:00:00 2001 -From: Alexander Barton <alex@barton.de> -Date: Sun, 22 Jan 2012 19:05:28 +0100 -Subject: [PATCH 14/16] ngircd: set/unset GLINE's on AKILL commands - ---- - modules/protocol/ngircd.cpp | 10 ++++++++-- - 1 files changed, 8 insertions(+), 2 deletions(-) - -diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp -index 024c61d..3bc3812 100644 ---- a/modules/protocol/ngircd.cpp -+++ b/modules/protocol/ngircd.cpp -@@ -48,10 +48,16 @@ class ngIRCdProto : public IRCDProto - { - void SendAkill(User *u, const XLine *x) - { -- // TODO: ADD SOME CODE -+ // Calculate the time left before this would expire, capping it at 2 days -+ time_t timeleft = x->Expires - Anope::CurTime; -+ if (timeleft > 172800 || !x->Expires) -+ timeleft = 172800; -+ UplinkSocket::Message(Config->ServerName) << "GLINE " << x->Mask << " " << timeleft << " :" << x->Reason << " (" << x->By << ")"; - } - -- void SendAkillDel(const XLine*) { } -+ void SendAkillDel(const XLine *x) { -+ UplinkSocket::Message(Config->ServerName) << "GLINE " << x->Mask; -+ } - - void SendGlobopsInternal(const BotInfo *source, const Anope::string &buf) - { --- -1.7.8.3 - |