diff options
-rw-r--r-- | include/modules/protocol/unreal.h | 8 | ||||
-rw-r--r-- | modules/protocol/unreal.cpp | 7 |
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; |