diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-02 20:09:01 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-02 20:09:01 +0000 |
commit | cca9826f431d25cb52328789e7cbc7613adae435 (patch) | |
tree | 26cb01c9fef25a63926b46012528102971b49c9e | |
parent | c1974899a85b952661e518a852a015fd2e72ed5a (diff) |
Change exception message: "You cannot load m_services.so and m_services_account.so at the same time (or some other module has claimed our modes)!"y
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10379 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_services.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_services_account.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_services.cpp b/src/modules/m_services.cpp index 2be2328a7..92be81f9d 100644 --- a/src/modules/m_services.cpp +++ b/src/modules/m_services.cpp @@ -122,7 +122,7 @@ class ModuleServices : public Module if (!ServerInstance->Modes->AddMode(m1) || !ServerInstance->Modes->AddMode(m2) || !ServerInstance->Modes->AddMode(m3) || !ServerInstance->Modes->AddMode(m4) || !ServerInstance->Modes->AddMode(m5)) { - throw ModuleException("Could not add user and channel modes!"); + throw ModuleException("You cannot load m_services.so and m_services_account.so at the same time (or some other module has claimed our modes)!"); } kludgeme = false; diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp index fa96b3e0c..fe381f64c 100644 --- a/src/modules/m_services_account.cpp +++ b/src/modules/m_services_account.cpp @@ -54,7 +54,7 @@ class ModuleServicesAccount : public Module m2 = new AChannel_M(ServerInstance); m3 = new AUser_R(ServerInstance); if (!ServerInstance->Modes->AddMode(m1) || !ServerInstance->Modes->AddMode(m2) || !ServerInstance->Modes->AddMode(m3)) - throw ModuleException("Could not add new modes!"); + throw ModuleException("You cannot load m_services.so and m_services_account.so at the same time (or some other module has claimed our modes)!"); Implementation eventlist[] = { I_OnWhois, I_OnUserPreMessage, I_OnUserPreNotice, I_OnUserPreJoin, I_OnSyncUserMetaData, I_OnUserQuit, I_OnCleanup, I_OnDecodeMetaData, I_On005Numeric }; |