No longer pass unneeded path to LoadModule

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@72 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-04-03 05:45:33 +00:00
parent 8b1a745081
commit 3ee360fc11

View File

@@ -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.");