Fix some issues found using valgrind/pure_static

This commit is contained in:
Daniel De Graaf 2010-03-22 12:03:55 -05:00
parent 1ac4f3b4f6
commit 440ca935da
3 changed files with 8 additions and 6 deletions

View File

@ -451,7 +451,7 @@ ModResult InspIRCd::CheckExemption(User* user, Channel* chan, const std::string&
return perm.result;
unsigned int mypfx = chan->GetPrefixValue(user);
char minmode;
char minmode = 0;
std::string current;
irc::spacesepstream defaultstream(ServerInstance->Config->ConfValue("options")->getString("exemptchanops"));

View File

@ -162,6 +162,7 @@ void ModuleManager::Reload(Module* mod, HandlerBase1<void, bool>* callback)
void ModuleManager::LoadAll()
{
Load("AllModule", true);
Load("cmd_whowas.so", true);
ConfigTagList tags = ServerInstance->Config->ConfTags("module");
for(ConfigIter i = tags.first; i != tags.second; ++i)

View File

@ -17,13 +17,14 @@
class ModuleAbbreviation : public Module
{
public:
ModuleAbbreviation()
{
void init()
{
ServerInstance->Modules->Attach(I_OnPreCommand, this);
/* Must do this first */
}
void Prioritize()
{
ServerInstance->Modules->SetPriority(this, I_OnPreCommand, PRIORITY_FIRST);
}