From: Samual Date: Fri, 30 Dec 2011 06:10:32 +0000 (-0500) Subject: Don't allow sending tell messages to yourself anymore :P X-Git-Tag: xonotic-v0.6.0~188^2~28^2~19 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c2a4199c00da51fd0b6e88a440be4d6b654b9382;p=xonotic%2Fxonotic-data.pk3dir.git Don't allow sending tell messages to yourself anymore :P --- diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index 9fedd46bb..efdbe95e6 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -503,12 +503,12 @@ void ClientCommand_tell(float request, float argc, string command) if(tell_accepted > 0) // the target is a real client { - //if(tell_to != self) // and we're allowed to send to them :D - //{ + if(tell_to != self) // and we're allowed to send to them :D + { Say(self, FALSE, tell_to, substring(command, argv_start_index(next_token), argv_end_index(-1) - argv_start_index(next_token)), TRUE); return; - //} - //else { print_to(self, "You can't ^2tell^7 a message to yourself."); return; } + } + else { print_to(self, "You can't ^2tell^7 a message to yourself."); return; } } else if(strtolower(argv(1)) == "world") {