From dc88f5153a3bb32b707f31f55960b262fd74798e Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 9 Sep 2009 21:59:12 +0000 Subject: 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 --- src/modules/m_ojoin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') 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; } -- cgit v1.2.3