]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't allow sending tell messages to yourself anymore :P
authorSamual <samual@xonotic.org>
Fri, 30 Dec 2011 06:10:32 +0000 (01:10 -0500)
committerSamual <samual@xonotic.org>
Fri, 30 Dec 2011 06:10:32 +0000 (01:10 -0500)
qcsrc/server/command/cmd.qc

index 9fedd46bb761d1a452caadd888459cea2a83e2df..efdbe95e6c31d53a63aeac12354e6295f4050d88 100644 (file)
@@ -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") 
                                {