summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-09 21:59:12 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-09 21:59:12 +0000
commitdc88f5153a3bb32b707f31f55960b262fd74798e (patch)
tree4341ad0a8279716cc2a9acd022f43e659c456ef4
parent5a8e55a8e4b0142273a7d6c0d37d9fecd3c4ada9 (diff)
really fix segfault when using ojoin in already-joined channel
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11690 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_ojoin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp
index a71f9f822..4e9477af1 100644
--- a/src/modules/m_ojoin.cpp
+++ b/src/modules/m_ojoin.cpp
@@ -94,7 +94,7 @@ class CommandOjoin : public Command
modes.push_back("+Y");
modes.push_back(user->nick);
ServerInstance->SendMode(modes, ServerInstance->FakeClient);
- ServerInstance->PI->SendMode(channel->name, ServerInstance->Modes->GetLastParseParams(), ServerInstance->Modes->GetLastParseTranslate());
+ ServerInstance->PI->SendMode(parameters[0], ServerInstance->Modes->GetLastParseParams(), ServerInstance->Modes->GetLastParseTranslate());
}
return CMD_SUCCESS;
}