summaryrefslogtreecommitdiff
path: root/modules/extra
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-07-31 06:24:24 -0400
committerAdam <Adam@anope.org>2011-07-31 06:24:24 -0400
commit63a4201d15b041edf0dc029b46684a2ec01ff75b (patch)
tree9362674982818e3f4146382b3df91dfcd8530bce /modules/extra
parentb751800ff44529d5ce4d7b6f9482565bd01bea55 (diff)
Fixed these ModuleManager::Attach calls once and for all..
Diffstat (limited to 'modules/extra')
-rw-r--r--modules/extra/bs_autoassign.cpp2
-rw-r--r--modules/extra/cs_entrymsg.cpp2
-rw-r--r--modules/extra/cs_set_misc.cpp2
-rw-r--r--modules/extra/hs_request.cpp2
-rw-r--r--modules/extra/m_async_commands.cpp2
-rw-r--r--modules/extra/m_dnsbl.cpp2
-rw-r--r--modules/extra/m_helpchan.cpp2
-rw-r--r--modules/extra/m_ldap.cpp2
-rw-r--r--modules/extra/m_ldap_authentication.cpp2
-rw-r--r--modules/extra/m_ldap_oper.cpp2
-rw-r--r--modules/extra/m_statusupdate.cpp2
-rw-r--r--modules/extra/m_xmlrpc.cpp2
-rw-r--r--modules/extra/ns_maxemail.cpp2
-rw-r--r--modules/extra/ns_set_misc.cpp2
14 files changed, 14 insertions, 14 deletions
diff --git a/modules/extra/bs_autoassign.cpp b/modules/extra/bs_autoassign.cpp
index 9e98b5c95..0f1b10712 100644
--- a/modules/extra/bs_autoassign.cpp
+++ b/modules/extra/bs_autoassign.cpp
@@ -21,7 +21,7 @@ class BSAutoAssign : public Module
this->SetAuthor("Anope");
Implementation i[] = { I_OnChanRegistered, I_OnReload };
- ModuleManager::Attach(i, this, 2);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
this->OnReload();
}
diff --git a/modules/extra/cs_entrymsg.cpp b/modules/extra/cs_entrymsg.cpp
index 547a5cb1a..3aa8ed862 100644
--- a/modules/extra/cs_entrymsg.cpp
+++ b/modules/extra/cs_entrymsg.cpp
@@ -166,7 +166,7 @@ class CSEntryMessage : public Module
this->SetAuthor("Anope");
Implementation i[] = { I_OnJoinChannel, I_OnReload, I_OnDatabaseReadMetadata, I_OnDatabaseWriteMetadata };
- ModuleManager::Attach(i, this, 4);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
ModuleManager::RegisterService(&commandentrymsg);
diff --git a/modules/extra/cs_set_misc.cpp b/modules/extra/cs_set_misc.cpp
index 4bc12efd8..fc9ae9cf6 100644
--- a/modules/extra/cs_set_misc.cpp
+++ b/modules/extra/cs_set_misc.cpp
@@ -60,7 +60,7 @@ class CSSetMisc : public Module
this->SetAuthor("Anope");
Implementation i[] = { I_OnChanInfo, I_OnDatabaseWriteMetadata, I_OnDatabaseReadMetadata };
- ModuleManager::Attach(i, this, 3);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
ModuleManager::RegisterService(&this->commandcssetmisc);
ModuleManager::RegisterService(&this->commandcssasetmisc);
diff --git a/modules/extra/hs_request.cpp b/modules/extra/hs_request.cpp
index 0070a481c..f846b6167 100644
--- a/modules/extra/hs_request.cpp
+++ b/modules/extra/hs_request.cpp
@@ -312,7 +312,7 @@ class HSRequest : public Module
ModuleManager::RegisterService(&commandhswaiting);
Implementation i[] = { I_OnDelNick, I_OnDatabaseRead, I_OnDatabaseWrite, I_OnReload };
- ModuleManager::Attach(i, this, 4);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
this->OnReload();
}
diff --git a/modules/extra/m_async_commands.cpp b/modules/extra/m_async_commands.cpp
index 665ee536d..84d7a4f41 100644
--- a/modules/extra/m_async_commands.cpp
+++ b/modules/extra/m_async_commands.cpp
@@ -118,7 +118,7 @@ class ModuleAsynchCommands : public Module, public Pipe, public AsynchCommandsSe
main_mutex.Lock();
Implementation i[] = { I_OnDeleteObject, I_OnPreCommand };
- ModuleManager::Attach(i, this, 2);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
ModuleManager::SetPriority(this, PRIORITY_FIRST);
diff --git a/modules/extra/m_dnsbl.cpp b/modules/extra/m_dnsbl.cpp
index a860a10f0..f62908b39 100644
--- a/modules/extra/m_dnsbl.cpp
+++ b/modules/extra/m_dnsbl.cpp
@@ -87,7 +87,7 @@ class ModuleDNSBL : public Module
this->SetAuthor("Anope");
Implementation i[] = { I_OnReload, I_OnUserConnect };
- ModuleManager::Attach(i, this, 2);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
OnReload();
}
diff --git a/modules/extra/m_helpchan.cpp b/modules/extra/m_helpchan.cpp
index 5da492a3a..71e1d3355 100644
--- a/modules/extra/m_helpchan.cpp
+++ b/modules/extra/m_helpchan.cpp
@@ -17,7 +17,7 @@ class HelpChannel : public Module
this->SetAuthor("Anope");
Implementation i[] = { I_OnChannelModeSet, I_OnReload };
- ModuleManager::Attach(i, this, 2);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
OnReload();
}
diff --git a/modules/extra/m_ldap.cpp b/modules/extra/m_ldap.cpp
index f4ba5646c..2be07ff05 100644
--- a/modules/extra/m_ldap.cpp
+++ b/modules/extra/m_ldap.cpp
@@ -346,7 +346,7 @@ class ModuleLDAP : public Module, public Pipe
me = this;
Implementation i[] = { I_OnReload, I_OnModuleUnload };
- ModuleManager::Attach(i, this, 2);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
OnReload();
}
diff --git a/modules/extra/m_ldap_authentication.cpp b/modules/extra/m_ldap_authentication.cpp
index a6fa5bd1b..dee3794fc 100644
--- a/modules/extra/m_ldap_authentication.cpp
+++ b/modules/extra/m_ldap_authentication.cpp
@@ -181,7 +181,7 @@ class NSIdentifyLDAP : public Module
this->SetAuthor("Anope");
Implementation i[] = { I_OnReload, I_OnPreCommand, I_OnCheckAuthentication, I_OnNickIdentify, I_OnNickRegister };
- ModuleManager::Attach(i, this, 5);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
ModuleManager::SetPriority(this, PRIORITY_FIRST);
OnReload();
diff --git a/modules/extra/m_ldap_oper.cpp b/modules/extra/m_ldap_oper.cpp
index 37029268e..f75d372c7 100644
--- a/modules/extra/m_ldap_oper.cpp
+++ b/modules/extra/m_ldap_oper.cpp
@@ -90,7 +90,7 @@ class LDAPOper : public Module
this->SetAuthor("Anope");
Implementation i[] = { I_OnReload, I_OnNickIdentify, I_OnDelCore };
- ModuleManager::Attach(i, this, 3);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
OnReload();
}
diff --git a/modules/extra/m_statusupdate.cpp b/modules/extra/m_statusupdate.cpp
index 797d5aed0..f04ab4fa5 100644
--- a/modules/extra/m_statusupdate.cpp
+++ b/modules/extra/m_statusupdate.cpp
@@ -15,7 +15,7 @@ class StatusUpdate : public Module
this->SetAuthor("Anope");
Implementation i[] = { I_OnAccessAdd, I_OnAccessChange, I_OnAccessDel, I_OnAccessClear };
- ModuleManager::Attach(i, this, 4);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
}
void OnAccessAdd(ChannelInfo *ci, User *u, ChanAccess *access)
diff --git a/modules/extra/m_xmlrpc.cpp b/modules/extra/m_xmlrpc.cpp
index bba72c2f5..9d301d684 100644
--- a/modules/extra/m_xmlrpc.cpp
+++ b/modules/extra/m_xmlrpc.cpp
@@ -232,7 +232,7 @@ class ModuleXMLRPC : public Module
ModuleManager::RegisterService(&this->xmlrpcinterface);
Implementation i[] = { I_OnReload };
- ModuleManager::Attach(i, this, 1);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
OnReload();
}
diff --git a/modules/extra/ns_maxemail.cpp b/modules/extra/ns_maxemail.cpp
index 18be74bce..2ffe52398 100644
--- a/modules/extra/ns_maxemail.cpp
+++ b/modules/extra/ns_maxemail.cpp
@@ -59,7 +59,7 @@ class NSMaxEmail : public Module
this->SetAuthor("Anope");
Implementation i[] = { I_OnReload, I_OnPreCommand };
- ModuleManager::Attach(i, this, 2);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
OnReload();
}
diff --git a/modules/extra/ns_set_misc.cpp b/modules/extra/ns_set_misc.cpp
index 229daed05..47506ce89 100644
--- a/modules/extra/ns_set_misc.cpp
+++ b/modules/extra/ns_set_misc.cpp
@@ -76,7 +76,7 @@ class NSSetMisc : public Module
this->SetAuthor("Anope");
Implementation i[] = { I_OnNickInfo, I_OnDatabaseWriteMetadata, I_OnDatabaseReadMetadata };
- ModuleManager::Attach(i, this, 3);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
ModuleManager::RegisterService(&this->commandnssetmisc);
ModuleManager::RegisterService(&this->commandnssasetmisc);