From b0316eb0472aff155feda1b3c9d0c59d44e3dc3e Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 12 Nov 2006 15:59:25 +0000 Subject: Add send_opers event and OPERNOTICE command to send remote server NOTICE git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5708 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_samode.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/modules/m_samode.cpp') diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp index 1f68e48bf..6e776e7c0 100644 --- a/src/modules/m_samode.cpp +++ b/src/modules/m_samode.cpp @@ -72,6 +72,11 @@ class cmd_samode : public command_t Event rmode((char *)&n, NULL, "send_mode_explicit"); rmode.Send(ServerInstance); + n.clear(); + n.push_back(std::string(user->nick) + " used SAMODE: " + ServerInstance->Modes->GetLastParse()); + Event rmode2((char *)&n, NULL, "send_opers"); + rmode.Send(ServerInstance); + /* XXX: Yes, this is right. We dont want to propogate the * actual SAMODE command, just the MODE command generated * by the send_mode_explicit -- cgit v1.3.1-10-gc9f91