* @param dest The output string, it is safe to pass source and dest as the same variable only for translation type TR_TEXT.
* @return returns the number of substitutions made. Will always be 0 or 1 for TR_TEXT and 0..n for other types.
*/
- int TranslateUIDsOnce(TranslateType to, const std::string &source, std::string &dest);
+ int TranslateUIDs(TranslateType to, const std::string &source, std::string &dest);
int TranslateUIDs(const std::deque<TranslateType> to, const std::deque<std::string> &source, std::string &dest);
};
* SetPriority method for this, where you may specify other modules to
* be prioritized against.
*/
- bool SetModulePriority(Module* mod, Priority s);
+ bool SetPriority(Module* mod, Priority s);
/** Attach an event to a module.
* You may later detatch the event with ModuleManager::Detach().
return translations;
}
-int CommandParser::TranslateUIDsOnce(TranslateType to, const std::string &source, std::string &dest)
+int CommandParser::TranslateUIDs(TranslateType to, const std::string &source, std::string &dest)
{
User* user = NULL;
std::string item;
Detach((Implementation)n, mod);
}
-bool ModuleManager::SetModulePriority(Module* mod, Priority s)
+bool ModuleManager::SetPriority(Module* mod, Priority s)
{
for (size_t n = I_BEGIN + 1; n != I_END; ++n)
SetPriority(mod, (Implementation)n, s);
*/
void ModuleSpanningTree::Prioritize()
{
- ServerInstance->Modules->SetModulePriority(this, PRIORITY_LAST);
+ ServerInstance->Modules->SetPriority(this, PRIORITY_LAST);
}
MODULE_INIT(ModuleSpanningTree)
}
else
{
- ServerInstance->Parser->TranslateUIDsOnce(translate_to, parameters[j], target);
+ ServerInstance->Parser->TranslateUIDs(translate_to, parameters[j], target);
}
if (j == (parameters.size() - 1))
RelativePath="..\src\modules\m_nationalchars.cpp"\r
>\r
<FileConfiguration\r
- Name="Site Release|Win32"\r
+ Name="Release|Win32"\r
ExcludedFromBuild="true"\r
>\r
<Tool\r