From 3ee360fc1192a726da5acadefbe1a476bbcb4817 Mon Sep 17 00:00:00 2001 From: prozacx Date: Sun, 3 Apr 2005 05:45:33 +0000 Subject: [PATCH] No longer pass unneeded path to LoadModule git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@72 726aef4b-f618-498e-8847-2d620e286838 --- UserSock.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/UserSock.cpp b/UserSock.cpp index f3f1f173..70036b99 100644 --- a/UserSock.cpp +++ b/UserSock.cpp @@ -206,11 +206,8 @@ void CUserSock::ReadLine(const string& sData) { string sPath = m_pUser->GetDLPath(); if (!CFile::Exists(sPath)) { - PutStatus("Directory [" + sPath + "] not found, creating."); - if (mkdir(sPath.c_str(), 0700)) { - PutStatus("Could not create [" + sPath + "] directory."); - return; - } + PutStatus("Could not create [" + sPath + "] directory."); + return; } else if (!CFile::IsDir(sPath)) { PutStatus("Error: [" + sPath + "] is not a directory."); return; @@ -657,7 +654,7 @@ void CUserSock::UserCommand(const string& sLine) { } string sModRet; - m_pUser->GetModules().LoadModule(sMod, sArgs, m_pUser, m_pZNC->GetBinPath(), sModRet); + m_pUser->GetModules().LoadModule(sMod, sArgs, m_pUser, sModRet); PutStatus(sModRet); #else PutStatus("Unable to load [" + sMod + "] Modules are not enabled."); @@ -698,7 +695,7 @@ void CUserSock::UserCommand(const string& sLine) { } string sModRet; - m_pUser->GetModules().ReloadModule(sMod, sArgs, m_pUser, m_pZNC->GetBinPath(), sModRet); + m_pUser->GetModules().ReloadModule(sMod, sArgs, m_pUser, sModRet); PutStatus(sModRet); #else PutStatus("Unable to unload [" + sMod + "] Modules are not enabled.");