public static void HandleTabCompletePacket(Client client, TabCompletePacket packet) { var str = new StringBuilder(); var s = (from a in client.GetServer().GetClients() where a.Username.Contains(packet.Text) select a).ToList(); if (!s.Any()) { return; } if (s.Count() > 1) { foreach (var c in s) { str.Append(c.Username); } str.Append('\0'); } else { str.Append(s[0].Username); } client.Send_Sync_Packet(new TabCompletePacket { Text = str.ToString() }); }