summaryrefslogtreecommitdiff
path: root/modules/protocol
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2022-12-31 22:10:37 +0000
committerSadie Powell <sadie@witchery.services>2022-12-31 22:11:19 +0000
commit885462d98e2dd3753b2992ce6fd6084340f86eee (patch)
tree2a933e4b12db31e1061b1814048c1fbbe4c30cad /modules/protocol
parent6395107be630b0a4181d68eb5b55b69493af5bb7 (diff)
parent33a337dfc051222041896ec3ac349fd2f4821777 (diff)
Merge branch '2.0' into 2.1.
Diffstat (limited to 'modules/protocol')
-rw-r--r--modules/protocol/bahamut.cpp2
-rw-r--r--modules/protocol/hybrid.cpp2
-rw-r--r--modules/protocol/inspircd.cpp10
-rw-r--r--modules/protocol/ngircd.cpp2
-rw-r--r--modules/protocol/plexus.cpp2
-rw-r--r--modules/protocol/ratbox.cpp2
-rw-r--r--modules/protocol/solanum.cpp2
-rw-r--r--modules/protocol/unrealircd.cpp2
8 files changed, 16 insertions, 8 deletions
diff --git a/modules/protocol/bahamut.cpp b/modules/protocol/bahamut.cpp
index 96198423b..dec19e029 100644
--- a/modules/protocol/bahamut.cpp
+++ b/modules/protocol/bahamut.cpp
@@ -1,6 +1,6 @@
/* Bahamut functions
*
- * (C) 2003-2022 Anope Team
+ * (C) 2003-2023 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
diff --git a/modules/protocol/hybrid.cpp b/modules/protocol/hybrid.cpp
index 5fa0dcdc4..9ca7aed33 100644
--- a/modules/protocol/hybrid.cpp
+++ b/modules/protocol/hybrid.cpp
@@ -1,6 +1,6 @@
/* ircd-hybrid protocol module. Minimum supported version of ircd-hybrid is 8.2.23.
*
- * (C) 2003-2022 Anope Team <team@anope.org>
+ * (C) 2003-2023 Anope Team <team@anope.org>
* (C) 2012-2022 ircd-hybrid development team
*
* Please read COPYING and README for further details.
diff --git a/modules/protocol/inspircd.cpp b/modules/protocol/inspircd.cpp
index 82e17a070..236f9e89f 100644
--- a/modules/protocol/inspircd.cpp
+++ b/modules/protocol/inspircd.cpp
@@ -1,6 +1,6 @@
/* InspIRCd functions
*
- * (C) 2003-2022 Anope Team
+ * (C) 2003-2023 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
@@ -281,8 +281,16 @@ class InspIRCdProto : public IRCDProto
{
Anope::string modes = "+" + u->GetModes();
UplinkSocket::Message(Me) << "UID " << u->GetUID() << " " << u->timestamp << " " << u->nick << " " << u->host << " " << u->host << " " << u->GetIdent() << " 0.0.0.0 " << u->timestamp << " " << modes << " :" << u->realname;
+
if (modes.find('o') != Anope::string::npos)
+ {
+ // Mark as introduced so we can send an oper type.
+ BotInfo *bi = BotInfo::Find(u->nick, true);
+ if (bi)
+ bi->introduced = true;
+
UplinkSocket::Message(u) << "OPERTYPE :service";
+ }
}
void SendServer(const Server *server) override
diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp
index f24475d69..6e09ebe25 100644
--- a/modules/protocol/ngircd.cpp
+++ b/modules/protocol/ngircd.cpp
@@ -1,7 +1,7 @@
/* ngIRCd Protocol module for Anope IRC Services
*
* (C) 2011-2012, 2014 Alexander Barton <alex@barton.de>
- * (C) 2011-2022 Anope Team <team@anope.org>
+ * (C) 2011-2023 Anope Team <team@anope.org>
*
* Please read COPYING and README for further details.
*
diff --git a/modules/protocol/plexus.cpp b/modules/protocol/plexus.cpp
index d9b8c0fa4..dc43eb0c2 100644
--- a/modules/protocol/plexus.cpp
+++ b/modules/protocol/plexus.cpp
@@ -1,6 +1,6 @@
/* Plexus 3+ IRCD functions
*
- * (C) 2003-2022 Anope Team
+ * (C) 2003-2023 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp
index 68f5f29ab..82b0c4208 100644
--- a/modules/protocol/ratbox.cpp
+++ b/modules/protocol/ratbox.cpp
@@ -1,6 +1,6 @@
/* Ratbox IRCD functions
*
- * (C) 2003-2022 Anope Team
+ * (C) 2003-2023 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
diff --git a/modules/protocol/solanum.cpp b/modules/protocol/solanum.cpp
index 0617069d0..af457bec2 100644
--- a/modules/protocol/solanum.cpp
+++ b/modules/protocol/solanum.cpp
@@ -1,6 +1,6 @@
/* Solanum functions
*
- * (C) 2003-2022 Anope Team
+ * (C) 2003-2023 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
diff --git a/modules/protocol/unrealircd.cpp b/modules/protocol/unrealircd.cpp
index 50a9abb52..80817e196 100644
--- a/modules/protocol/unrealircd.cpp
+++ b/modules/protocol/unrealircd.cpp
@@ -1,6 +1,6 @@
/* UnrealIRCd functions
*
- * (C) 2003-2022 Anope Team
+ * (C) 2003-2023 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.