summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-12 16:03:21 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-12 16:03:21 +0000
commit74e081f98e81097c94a6eede15c1f2b7a0d6c0e4 (patch)
tree0eda327bcedbf7b7b94f0cc0f2aa6a4e2e00e5aa /src
parent76cb0571ed2c94cca327129ff21991ef8d1f7a19 (diff)
Make OPERNOTICE work right
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5710 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_samode.cpp2
-rw-r--r--src/modules/m_spanningtree.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp
index 6e776e7c0..97b84efd6 100644
--- a/src/modules/m_samode.cpp
+++ b/src/modules/m_samode.cpp
@@ -75,7 +75,7 @@ class cmd_samode : public command_t
n.clear();
n.push_back(std::string(user->nick) + " used SAMODE: " + ServerInstance->Modes->GetLastParse());
Event rmode2((char *)&n, NULL, "send_opers");
- rmode.Send(ServerInstance);
+ rmode2.Send(ServerInstance);
/* XXX: Yes, this is right. We dont want to propogate the
* actual SAMODE command, just the MODE command generated
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index a622c2624..099d06f77 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -5173,6 +5173,7 @@ class ModuleSpanningTree : public Module
{
if (params->size() < 2)
return;
+ (*params)[0] = ":" + (*params)[0];
Utils->DoOneToMany(ServerInstance->Config->ServerName,"MODE",*params);
}
else if (event->GetEventID() == "send_opers")