From: danieldg Date: Wed, 9 Sep 2009 21:59:12 +0000 (+0000) Subject: really fix segfault when using ojoin in already-joined channel X-Git-Tag: v2.0.23~1556 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=dc88f5153a3bb32b707f31f55960b262fd74798e;p=user%2Fhenk%2Fcode%2Finspircd.git 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 --- 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; }