aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_chghost.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2014-06-18 13:50:39 +0200
committerGravatar Attila Molnar2014-06-18 13:50:39 +0200
commit983a22cef84af9201996094df137cf7b9ec5dceb (patch)
tree79d7010ee7a3f85401ca7a0e5beb8fce9286882f /src/modules/m_chghost.cpp
parentMerge pull request #872 from theckman/remove_whitespace_from_docs (diff)
downloadinspircd++-983a22cef84af9201996094df137cf7b9ec5dceb.tar.gz
inspircd++-983a22cef84af9201996094df137cf7b9ec5dceb.tar.bz2
inspircd++-983a22cef84af9201996094df137cf7b9ec5dceb.zip
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.cpp3
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;