]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chghost.cpp
Simplify /SAJOIN syntax and add permission for joining other users.
[user/henk/code/inspircd.git] / src / modules / m_chghost.cpp
index f79ae4624825e25a8f2b38ba2a7b8cffd3e337c5..eefac00f101743f0ec41c00f44c2cfa0efefb221 100644 (file)
@@ -64,7 +64,7 @@ class CommandChghost : public Command
 
                if (IS_LOCAL(dest))
                {
-                       if ((dest->ChangeDisplayedHost(parameters[1])) && (!ServerInstance->ULine(user->server)))
+                       if ((dest->ChangeDisplayedHost(parameters[1])) && (!user->server->IsULine()))
                        {
                                // fix by brain - ulines set hosts silently
                                ServerInstance->SNO->WriteGlobalSno('a', user->nick+" used CHGHOST to make the displayed host of "+dest->nick+" become "+dest->dhost);