mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Fix bug #122
This commit is contained in:
parent
276caaad04
commit
edc538a3c8
@ -106,8 +106,8 @@ class CloakUser : public ModeHandler
|
||||
/* User is removing the mode, so restore their real host
|
||||
* and make it match the displayed one.
|
||||
*/
|
||||
user->ChangeDisplayedHost(user->host.c_str());
|
||||
user->SetMode('x',false);
|
||||
user->ChangeDisplayedHost(user->host.c_str());
|
||||
return MODEACTION_ALLOW;
|
||||
}
|
||||
}
|
||||
@ -365,7 +365,11 @@ class ModuleCloaking : public Module
|
||||
// mode change, we will call SetMode back to true AFTER the host change is done.
|
||||
void OnChangeHost(User* u, const std::string& host)
|
||||
{
|
||||
u->SetMode('x', false);
|
||||
if(u->IsModeSet('x'))
|
||||
{
|
||||
u->SetMode('x', false);
|
||||
u->WriteServ("MODE %s -x", u->nick.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
~ModuleCloaking()
|
||||
|
Loading…
x
Reference in New Issue
Block a user