summaryrefslogtreecommitdiff
path: root/src/modules/m_jumpserver.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-13 04:18:25 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-13 04:18:25 +0000
commitb822830c5bd9fff5aecf4e8f876ade39a9c7ab6c (patch)
tree281094f7c4408b2a2c7f44259fd414b5f8065227 /src/modules/m_jumpserver.cpp
parente9808ffb01876ab0ebad383de7861899a17f1a63 (diff)
Change lockserv emergency unlock procedure, and add one for jumpserver [jackmcbarn]
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12630 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_jumpserver.cpp')
-rw-r--r--src/modules/m_jumpserver.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/modules/m_jumpserver.cpp b/src/modules/m_jumpserver.cpp
index 56e45d77e..416b25dd3 100644
--- a/src/modules/m_jumpserver.cpp
+++ b/src/modules/m_jumpserver.cpp
@@ -138,8 +138,8 @@ class ModuleJumpServer : public Module
ModuleJumpServer() : js(this)
{
ServerInstance->AddCommand(&js);
- Implementation eventlist[] = { I_OnUserRegister };
- ServerInstance->Modules->Attach(eventlist, this, 1);
+ Implementation eventlist[] = { I_OnUserRegister, I_OnRehash };
+ ServerInstance->Modules->Attach(eventlist, this, 2);
}
virtual ~ModuleJumpServer()
@@ -158,6 +158,11 @@ class ModuleJumpServer : public Module
return MOD_RES_PASSTHRU;
}
+ virtual void OnRehash(User* user)
+ {
+ // Emergency way to unlock
+ if (!user) js.redirect_new_users = false;
+ }
virtual Version GetVersion()
{