X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fusers.cpp;h=b00992141ac5b0ed8a6ee5792f550d4e267fb12a;hb=a032cd90ad5582914759e226085efee5aae1a1ef;hp=fd794d386776ef573073d7847aa6321eebd02b89;hpb=961109ae4fde97144fdedeef25607a5b8b3ec2c2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/users.cpp b/src/users.cpp index fd794d386..b00992141 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1013,7 +1013,7 @@ bool User::ChangeDisplayedHost(const std::string& shost) this->InvalidateCache(); - if (IS_LOCAL(this)) + if (IS_LOCAL(this) && this->registered != REG_NONE) this->WriteNumeric(RPL_YOURDISPLAYEDHOST, this->GetDisplayedHost(), "is now your displayed host"); return true;