mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 12:09:03 -04:00
More fixes for owines bugs
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8560 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
ed64df98d5
commit
a97f41a480
@ -68,7 +68,6 @@ class CloakUser : public ModeHandler
|
||||
public:
|
||||
CloakUser(InspIRCd* Instance, Module* Source, Module* Hash) : ModeHandler(Instance, 'x', 0, 0, false, MODETYPE_USER, false), Sender(Source), HashProvider(Hash)
|
||||
{
|
||||
printf("ServerInstance: %08lx\n", ServerInstance);
|
||||
}
|
||||
|
||||
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding)
|
||||
@ -315,6 +314,11 @@ class ModuleCloaking : public Module
|
||||
ModuleCloaking(InspIRCd* Me)
|
||||
: Module(Me)
|
||||
{
|
||||
|
||||
HashModule = ServerInstance->FindModule("m_md5.so");
|
||||
if (!HashModule)
|
||||
throw ModuleException("Can't find m_md5.so. Please load m_md5.so before m_cloaking.so.");
|
||||
|
||||
/* Create new mode handler object */
|
||||
cu = new CloakUser(ServerInstance, this, HashModule);
|
||||
|
||||
@ -328,11 +332,6 @@ class ModuleCloaking : public Module
|
||||
throw e;
|
||||
}
|
||||
|
||||
/* Attempt to locate the md5 service provider, bail if we can't find it */
|
||||
HashModule = ServerInstance->FindModule("m_md5.so");
|
||||
if (!HashModule)
|
||||
throw ModuleException("Can't find m_md5.so. Please load m_md5.so before m_cloaking.so.");
|
||||
|
||||
if (!ServerInstance->AddMode(cu, 'x'))
|
||||
throw ModuleException("Could not add new modes!");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user