summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-04-20 15:46:04 -0400
committerAdam <Adam@anope.org>2017-04-20 15:46:04 -0400
commit983dc62c2f9717c407be5dc67fa37f1be74320dd (patch)
treeebec1ea2d991aeafa7136b74fff066ef13e2f1f8
parentd68778166ace1af358f1e2391454a9d3f1aafbae (diff)
parenta4f7d847abdde8f070a201417a456067d3beb4a1 (diff)
Merge commit 'a4f7d847abdde8f070a201417a456067d3beb4a1'
-rw-r--r--include/modules/protocol/unreal.h8
-rw-r--r--modules/protocol/unreal.cpp7
2 files changed, 14 insertions, 1 deletions
diff --git a/include/modules/protocol/unreal.h b/include/modules/protocol/unreal.h
index 9039cc2cd..dedb1b068 100644
--- a/include/modules/protocol/unreal.h
+++ b/include/modules/protocol/unreal.h
@@ -235,6 +235,14 @@ class VhostSet : public messages::VhostSet
void Send(User *u, const Anope::string &vident, const Anope::string &vhost) override;
};
+class Wallops : public messages::Wallops
+{
+ public:
+ using messages::Wallops::Wallops;
+
+ void Send(const MessageSource &source, const Anope::string &msg) override;
+};
+
} // namespace senders
class Proto : public IRCDProto
diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp
index 0bca595df..e77fd2133 100644
--- a/modules/protocol/unreal.cpp
+++ b/modules/protocol/unreal.cpp
@@ -309,6 +309,11 @@ void unreal::senders::VhostSet::Send(User* u, const Anope::string& vident, const
Uplink::Send(Me, "CHGHOST", u->GetUID(), vhost);
}
+void unreal::senders::Wallops::Send(const MessageSource &source, const Anope::string &msg)
+{
+ Uplink::Send(Me, "SENDUMODE", "o", "from " + source.GetName() + ": " + msg);
+}
+
unreal::Proto::Proto(Module *creator) : IRCDProto(creator, "UnrealIRCd 4")
{
DefaultPseudoclientModes = "+Soiq";
@@ -1145,7 +1150,6 @@ class ProtoUnreal : public Module
bahamut::senders::NOOP sender_noop;
bahamut::senders::SVSNick sender_svsnick;
- bahamut::senders::Wallops sender_wallops;
unreal::senders::Akill sender_akill;
unreal::senders::AkillDel sender_akill_del;
@@ -1170,6 +1174,7 @@ class ProtoUnreal : public Module
unreal::senders::Topic sender_topic;
unreal::senders::VhostDel sender_vhost_del;
unreal::senders::VhostSet sender_vhost_set;
+ unreal::senders::Wallops sender_wallops;
bool use_server_side_mlock;