disable settin hostname to blek.codes

This commit is contained in:
b1ek 2023-05-05 14:36:22 +10:00
parent 3db714b153
commit ec105acfb8
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,11 @@ module.exports = (argv, terminal, zsh) => {
return 0; return 0;
} }
if (argv[1] == 'blek.codes') {
terminal.writeln(`${argv[0]}: cannot set hostname to ${argv[1]}: permission denied (you are not on blek.codes you moron)`);
return 1;
}
data.ip = argv[1]; data.ip = argv[1];
zsh.update_prompt(); zsh.update_prompt();
return 0; return 0;