X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fcommand%2Fcmd.qc;h=6928957d6d812e6f15511d2b82e421d8f0c7f877;hb=dc141acff9b80547084cbb83f52e83a7be95eceb;hp=4606638f621ac1240078f0149b2e27ef5cb17c78;hpb=5139014e266354c864798c7ec1d94aea59c055e9;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index 4606638f6..6928957d6 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -768,6 +768,12 @@ void ClientCommand_voice(entity caller, int request, int argc, string command) // we still allow them to see warnings if it's invalid, so a dead player can find out the sounds in peace return; } + if (IS_SPEC(caller) || IS_OBSERVER(caller)) + { + // observers/spectators have no player model of their own to play taunts from + // again, allow them to see warnings + return; + } string msg = ""; if (argc >= 3) msg = substring(command, argv_start_index(2), argv_end_index(-1) - argv_start_index(2));