From 7b1154de69c175ecf9e6042a5c5f4cf89fa222e7 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 8 Jan 2017 13:08:04 -0500 Subject: ns_register: notify users of unconfirmed accounts on register when there is no user too --- modules/commands/ns_register.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp index 1595d51a8..7c1d7e4f8 100644 --- a/modules/commands/ns_register.cpp +++ b/modules/commands/ns_register.cpp @@ -234,7 +234,6 @@ class CommandNSRegister : public Command if (nsregister.equals_ci("admin")) { nc->Extend("UNCONFIRMED"); - // User::Identify() called below will notify the user that their registration is pending } else if (nsregister.equals_ci("mail")) { @@ -249,9 +248,17 @@ class CommandNSRegister : public Command if (u) { + // This notifies the user that if their registration is unconfirmed u->Identify(na); u->lastnickreg = Anope::CurTime; } + else if (nc->HasExt("UNCONFIRMED")) + { + if (nsregister.equals_ci("admin")) + source.Reply(_("All new accounts must be validated by an administrator. Please wait for your registration to be confirmed.")); + else if (nsregister.equals_ci("mail")) + source.Reply(_("Your email address is not confirmed. To confirm it, follow the instructions that were emailed to you.")); + } } } -- cgit From a4f7d847abdde8f070a201417a456067d3beb4a1 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 11 Jan 2017 20:42:20 -0500 Subject: unreal4: use SENDUMODE instead of GLOBOPS --- modules/protocol/unreal4.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules') diff --git a/modules/protocol/unreal4.cpp b/modules/protocol/unreal4.cpp index b98de5ff2..e17558680 100644 --- a/modules/protocol/unreal4.cpp +++ b/modules/protocol/unreal4.cpp @@ -300,6 +300,11 @@ class UnrealIRCdProto : public IRCDProto UplinkSocket::Message() << "SVSPART " << user->GetUID() << " " << chan; } + void SendGlobopsInternal(const MessageSource &source, const Anope::string &buf) anope_override + { + UplinkSocket::Message(Me) << "SENDUMODE o :from " << source.GetName() << ": " << buf; + } + void SendSWhois(const MessageSource &source, const Anope::string &who, const Anope::string &mask) anope_override { UplinkSocket::Message(source) << "SWHOIS " << who << " :" << mask; -- cgit