aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-03-22 12:03:55 -0500
committerGravatar Daniel De Graaf2010-08-03 17:32:40 -0400
commit440ca935da120a91c29cb2bb48102abc2fccae47 (patch)
treec3adae86d8cf1761a997698a28116bf30140c805 /src
parentMove ModuleManager::UnloadAll out of modmanager_dynamic (diff)
Fix some issues found using valgrind/pure_static
Diffstat (limited to 'src')
-rw-r--r--src/helperfuncs.cpp2
-rw-r--r--src/modmanager_static.cpp1
-rw-r--r--src/modules/m_abbreviation.cpp11
3 files changed, 8 insertions, 6 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index d65655a33..3a3a79005 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -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"));
diff --git a/src/modmanager_static.cpp b/src/modmanager_static.cpp
index 2bcd78e6c..165e8b1ae 100644
--- a/src/modmanager_static.cpp
+++ b/src/modmanager_static.cpp
@@ -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)
diff --git a/src/modules/m_abbreviation.cpp b/src/modules/m_abbreviation.cpp
index f0086ddcb..b87e352d2 100644
--- a/src/modules/m_abbreviation.cpp
+++ b/src/modules/m_abbreviation.cpp
@@ -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);
}