diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-06-18 13:50:39 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-06-18 13:50:39 +0200 |
commit | 983a22cef84af9201996094df137cf7b9ec5dceb (patch) | |
tree | 79d7010ee7a3f85401ca7a0e5beb8fce9286882f /src/modules/m_chghost.cpp | |
parent | 9966a3a3b253fd3d22fffb4a0b04c9140da62898 (diff) |
m_chghost Allow ulined servers to change the host of unregistered users (for SASL)
Diffstat (limited to 'src/modules/m_chghost.cpp')
-rw-r--r-- | src/modules/m_chghost.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp index 08f7f76fa..6aaed7831 100644 --- a/src/modules/m_chghost.cpp +++ b/src/modules/m_chghost.cpp @@ -59,7 +59,8 @@ class CommandChghost : public Command User* dest = ServerInstance->FindNick(parameters[0]); - if ((!dest) || (dest->registered != REG_ALL)) + // Allow services to change the host of unregistered users + if ((!dest) || ((dest->registered != REG_ALL) && (!ServerInstance->ULine(user->server)))) { user->WriteNumeric(ERR_NOSUCHNICK, "%s %s :No such nick/channel", user->nick.c_str(), parameters[0].c_str()); return CMD_FAILURE; |